Write a Tetris game in JavaScript