add js part for update password