Problem with XMLHttpRequest.DONE values?
You should be checking readyState against one of the numeric values, 4 in your case.
Some browser does not know XMLHttpRequest.DONE
property, so you should check it as follows before first 'if':
var DONE = (typeof XMLHttpRequest.DONE !== 'undefined') ? XMLHttpRequest.DONE : 4;