update plugin javascript file