added js file

first commit of the js file containing the plugin