Addapt to new behavior of plugin_url_rule_to_js