update js
make it work