Created js file for pluin