XMLHTTP notes: readyState and the events http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html