Multiple changes:

Moved variable instantiation block
Showed pgn file in page title if present
Added pgn to toggle btn args