Added JS for update action