window.onload = function(){

    initializeCanvas();

};

function initializeCanvas(){

    //Initialize the canvas
    canvas = document.getElementById("canvas");
    canvas.width = 900;
    canvas.height = 600;

    var options = {
        canvas: canvas, //The canvas object on which our dungeon is placed on
        tilesX: 60, //The number of horizontal tiles on this map
        tilesY: 40, //The number of vertical tiles on this map
        tileSize: 15, //The width and height of a single tile
        maxRooms: 10, //The maximum number of rooms on this map
        minRoomWidth: 6, //The minimum width of a single room
        maxRoomWidth: 12, //The maximum width of a single room
        minRoomHeight: 6, //The minimum height of a single room
        maxRoomHeight: 12, //The maximum height of a single room
        debug: false //Boolean to enable or disable the debugger
    };

    //Set click event to the canvas
    canvas.addEventListener('click', function(){
        game = new Roguelike.Game(options);
    }, false);

    //Create a new game
    game = new Roguelike.Game(options);

}
@@ -36,22 +36,20 @@
 itialize
-Canvas
+Game
 ();%0A%0A%7D;%0A
@@ -72,14 +72,12 @@
 lize
-Canvas
+Game
 ()%7B%0A
@@ -85,149 +85,71 @@
     
-//Initialize the canvas%0A    canvas = document.getElementById(%22canvas%22);%0A    canvas.width = 900;%0A    canvas.height = 600;%0A%0A    var options = %7B
+var options = %7B%0A        canvasW: 900, //The width of the canvas
 %0A   
@@ -163,24 +163,22 @@
 nvas
+H
 : 
-canvas
+600
 , //The 
 canv
@@ -177,55 +177,28 @@
 The 
-canvas object on which our dungeon is placed on
+height of the canvas
 %0A   
@@ -779,153 +779,8 @@
 %7D;%0A%0A
-    //Set click event to the canvas%0A    canvas.addEventListener('click', function()%7B%0A        game = new Roguelike.Game(options);%0A    %7D, false);%0A%0A
     

Initialize no longer initializes the canvas, this is a responsibility of the render object.