Step-10 : Implement JS for updating the user