The code for the javascript exploration game.