update a plug-in in javascript

update a plug-in in javascript