import "js/web.jsx";

class _Main {
	static function main(args : string[]) : void {
		var xhr = new XMLHttpRequest();
		xhr.addEventListener("readystatechange", function (e) {
			if (xhr.readyState == XMLHttpRequest.DONE) {
				dom.window.alert(xhr.responseText);
			}
		});
		xhr.open("GET", "http://en.wikipedia.org/");
		xhr.send();
	}
}
