We are currently performing a clever hack for getting our custom JS in, but there us a standard way of already doing this. Consider how InfoWindow does this
public function register_script(){
plugin::add_javascript("InfoWindow/media/js/jquery.pagination");
echo plugin::render("javascript");
echo "<script src=\"".url::base()."infowindow\"></script>";
}
We are currently performing a clever hack for getting our custom JS in, but there us a standard way of already doing this. Consider how InfoWindow does this