A Tetris game with an AI, written in Javascript