le>
<script type="text/javascript">

var globalObject = null;
var globalCounter = 0;

function stop() {
  if(globalObject != null) {
    console.log("Stopping previous render loop.")
    var g = globalObject;
    globalObject = null;
    g.running = false;
    g.gl.clear(g.gl.COLOR_BUFFER_BIT);
  }
}

function startSafe() {
  try {
    document.getElementById("console").value = "";
    start();
  } catch(e) {
    document.getElementById("console").value = e;
  }
}

function start() {
  var vertexShaderSourc