Tetris clone in HTML5 and JavaScript