Moved the plugin JS to a separate file