A JavaScript Tetris implementation