Moved non-game-specific code out of index.htm. Much better!