Update with js