code: function onSignUp() {
    var email = $('#signup-email').val();
    var password = $('#signup-password').val();
    auth.createUserWithEmailAndPassword(email, password)
        .then(onAuthUserCredentialSuccess, onAuthError);
  }
docs: Signs up a new user with an email and a password.