Pretty interesting, I made tetris or what not just for the heck of it with sfml, trying to understand currently how you managed to port it to web format, hopefully I get it somehow. But for sure an interesting approach and concept, fun to watch as well.
Just for the heck of it, if you are interested https://github.com/VerzatileDev/App.Tetris an old project decided to fix some stuff and etc. Didnt bother to completly fix the messy code, but here we are :)