queue.enterEventLoop(function () { queue.shutdown(); });
xhr.onreadystatechange = function () { if (xhr.readyState === 4) { print(xhr.responseText); eventq.shutdown(); } };