Fix example game.

Fix syntax error in the example game and add proper scripts to the example index.html file.