Use the plugin name with plugins_url() instead of __FILE__ so that a symlinked plugin directory does not break functioanlity and cause a 404 error to js file