Making XHR async.