update in js userController