title: e.PreventDefault is Undefined
body: <p>I have registerAjax(e) function:</p>
  
  <pre><code>function registerAjax(e) {
  e.preventDefault();
  let userData = {
      username: $("#username").val(),
      password: $("#password").val(),
  };
  $.ajax({
      method: "POST",
      url: kinveyBaseUrl + "user/" + kinveyAppKey + "/",
      headers: kinveyAppAuthHeaders,
      data: userData,
      success: registerSuccess,
      error: handleAjaxError
  });
  function registerSuccess(userInfo) {
      saveAuthInSession(userInfo);
      showInfo('User registration successful.');
  }
  </code></pre>
  
  <p>This function is invoked by this function</p>
  
  <pre><code>function registerUser() {
  registerAjax();
  </code></pre>
  
  <p>When i run the app, i recieve the console message "Uncaught TypeError: Cannot read property 'preventDefault' of undefined(…)"</p>
  
  <p>Is There any easy solution for fix this exception ?</p>
  
  <pre><code>function startApplication() { 
    //Bind The Form Submit Buttons 
    $(document).ready(function () {
      $("#btnRegister").on('click', registerUser()); 
    });
    loadingBox(); 
    //Bind the info / error boxes: hide on click 
    $("#infoBox, #errorBox").click(function () { 
      $(this).fadeOut(); 
    }); 
  }
  </code></pre>