update password page to new js format