(function (c) {
  if (!c) {
    throw 'Oops, Crafty not found';
  }

  c.init(197, 384);
  c.canvas.init();

  c.background('url(/img/objects/board_bg.png)');
  
  c.sprite(40, "/img/tiles_spritesheet.png", {
      tile_blue: [0,0],
      tile_red: [1,0],
      tile_orange: [2,0],
      tile_green: [3,0],
      monster_blue: [4,0],
      monster_red: [5,0],
      monster_orange: [6,0],
      monster_green: [7,0],
    });

  c.scene("game", function() {
  });

  c.scene("game");

}(Crafty));


$(document).keydown(function(e){
  switch(e.keyCode)
  {
  case 37:
    console.log('left');
    break;
  case 38:
    console.log('up');
    break;
  case 39:
    console.log('right');
    break;
  case 40:
    console.log('down');
    break;
  case 32:
    console.log('space');
    break;
  };
  return;
});


@@ -152,18 +152,16 @@
 png)');%0A
-  
 %0A  c.spr

removing whitespace