make XMLHttpRequest async