update plugin javascript