Here is a interesting script where you can play one of the most famous game, Tetris. Using HTML and JavaScript (MooTools as framework) , TetriJs need only a browser to be played.
The script is developed by Francesco Monaca and is under the GNU GPL license.
Download the latest version of TetrisJ: Version 2.5