edit user javascript working