add the javascript to call the plugin at the bottom of the document