code: function onUpdateProfile() {
    var displayName = $('#display-name').val();
    var photoURL = $('#photo-url').val();
    activeUser().updateProfile({
      'displayName': displayName,
      'photoURL': photoURL
    }).then(function() {
      refreshUserData();
      alertSuccess('Profile updated!');
    }, onAuthError);
  }
docs: Changes the user's password.