<!DOCTYPE html>
<head>
  <title>Ajax test</title>
</head>
<body>
  <h1>README</h1>
  <h2>loaded in the "Ajax" style</h2>
  <pre id="readme"></pre>
  <script>
  var $ = document.querySelector.bind(document);
  var req = new XMLHttpRequest();
  req.open("get", "http://localhost:8000/big-file.txt", true);
  req.onload = function(){
    $("#readme").textContent = this.responseText;
  }
  req.send()
  </script>
</body>