Tetris in plain javascript