use WP_PLUGIN_URL instead of wpurl for .js register