title: how do i handle the requests asynchrous as this isnt working, it should be alerting with the response
body: <pre><code>var data = new FormData();
  data.append("name", nickname.value);
  data.append("email", email.value);
  data.append("user", user.value);
  data.append("passw", passw.value);
  
  var req = new XMLHttpRequest();
  req.onreadystatechange = function() { 
      if (req.readyState == 4 &amp;&amp; req.status == 200)
          afterSignup(req.responseText);
  }
  req.open("GET", server, true); // true for asynchronous 
  req.send(data);
  
  function afterSignup(req) {
      res = JSON.parse(req)["res"];
      alert(res);
  }
  </code></pre>
  
  <p>im trying to handle the requests asynchronised but im just not sure how to do it, this is what i have so far</p>