Tetris (TM) clone in JavaScript