<!DOCTYPE html>
<html>

  <head>
    <script src="https://cdn.rawgit.com/angular/zone.js/v0.8.26/dist/zone.js"></script>

    <script>
      //https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
      window.onerror = function(message, source, lineno, colno, error) {
        var e = document.createElement("div");
        e.textContent = Array.prototype.slice.call(arguments).join(", ");
        document.body.appendChild(e);
      }
      
      setTimeout(function () { throw new Error("foobars"); }, 10);
    </script>
  </head>

  <body>
  </body>

</html>
// Code goes here

/* Styles go here */