I experienced a bug where the game suddenly stops after a few minutes of playing. I'm using Firefox ESR 45.4.0 on RHEL if it helps. Otherwise, great job!
> TypeError: tetrisBoard[(y - 1)] is undefined
From within tick()
Seems to be triggered by rotation followed by a drop.