the XHR "done" state is a numeric value of 4. http://www.w3.org/TR/XMLHttpRequest/#states