Simple tetris game with HTML5 and javascript