XMLHttpRequest implemented (not yet working due to responseCode being 0