r.open <span class="string">'GET'</span>, url, <span class="literal">true</span>
  xhr.overrideMimeType <span class="string">'text/plain'</span> <span class="keyword">if</span> <span class="string">'overrideMimeType'</span> <span class="keyword">of</span> xhr
  xhr.<span class="function"><span class="title">onreadystatechange</span></span> = -&gt;
    <span class="keyword">if</span> xhr.readyState <span class="keyword">is</span> <span class="number">4</span>
      <span class="keyword">if</span> xhr.status 