Your high scores are persisted through your browser's localStorage. This means that this game is a purely client-side application, and can be played offline without the internet.
I made great use out of these JS libraries:
The source code for my Tetris implementation is available on GitHub at github.com/nylira/tetris. Feel free to take a look!
And if you want to play it, go here: tetris.nylira.com