title: asynchronous xml request doesn't return
body: <p>So I'm trying to rewrite a synchronous xml request into an asynchronous xml request. I've very new to this, so please forgive me if the error is really stupid.</p>
  
  <p>Anyways, this is currently what I've got.</p>
  
  <pre><code>var getEmployeeData = function(section, question, column){
      var xhr = new XMLHttpRequest();
      xhr.open("GET", Data.contextPath + "/main/?action=get-employee-list&amp;section=" +section+ "&amp;question=" +question+ "&amp;column=" +column, true)
      xhr.onload = function (e) {
          if (xhr.readyState === 4) {
              if (xhr.status === 200) {
                  if (employeeDataDone) {
                      if (xhr.responseText==("\r\n")) {
                          employeeList = null;
                          employeeInverseList = null;
                      } else {
                          employeeList = JSON.parse(xhr.responseText)[0];
                          employeeInverseList = JSON.parse(xhr.responseText)[1];
                      }
                  }
              } else {
                console.error(xhr.statusText);
              }
            }
      }.bind(this);
      xhr.onerror = function (e) {
          console.error(xhr.statusText);
      };
      xhr.send(null);
  }.bind(this);
  </code></pre>
  
  <p>Any help is appreciated, and if you need any extra information that I've neglected to include, simply ask for it.</p>
  
  <p>Thanks!</p>