code: function onChangeEmail() {
    var email = $('#changed-email').val();
    activeUser().updateEmail(email).then(function() {
      refreshUserData();
      alertSuccess('Email changed!');
    }, onAuthError);
  }
docs: Changes the user's email.