added a new js file to convert the existing plugin to js prototype format
converted existing plugin to js prototype format.