window.onload = function () { Crafty.init(400, 400); //Crafty.canvas.init(); };