HTML5 game using javascript and canvas