Made some corrections to XMLHttpRequest.send()