Download this repo. Click on tetris.html and play! use your arrow keys on your keyboard to move the blocks and Q and W to rotate. That's it really.
Check out the demo project for a quick example of how it looks.
Inspired from methmethmethod
Pull requests are more than welcomed!
WTFPL Licence - Do whatever the fuck you want licence