Fixed game, moved scripts

Moved scripts to bottom of layout, added conditional var to load game
scripts only in game page.