HTML5 game skeleton using createjs