Simple Javascript game using HTML5 Canvas