HTML 2d Canvas Game Prototype