var BOARD_HEIGHT = 288;
var BOARD_WIDTH = 224;
var VERT_TILES = BOARD_HEIGHT / 8;
var HORIZ_TILES = BOARD_WIDTH / 8;

gameBoard = new Array(VERT_TILES);
for(var y = 0; y < VERT_TILES; y++) {
  gameBoard[y] = new Array(HORIZ_TILES);
  for(var x = 0; x < HORIZ_TILES; x++) {
    gameBoard[y][x] = 0;
  }
}

@@ -297,8 +297,343 @@
 ;%0A  %7D%0A%7D%0A
+%0Avar ready = function(fun) %7B%0A  if(document.readyState != %22loading%22) %7B%0A    fun();%0A  %7D%0A  else if(document.addEventListener) %7B%0A    document.addEventListener(%22DOMContentLoaded%22, fun);%0A  %7D%0A  else %7B%0A    document.attachEvent(%22onreadystatechange%22, function() %7B%0A      if(document.readyState != %22loading%22) %7B%0A        fun();%0A      %7D%0A    %7D);%0A  %7D%0A%7D%0A

Add ready function in js with IE8 compatibility