Fix JS for update action in admin page