The web service outputs a countdown gradually, flushing after each digit. The browser side continues polling xhReq.responseText to grab the latest text and state. See Streaming_HTTP.