Fix fuckups by commit #705

Those variables MUST be global for the dupes/saves tabs to work. Also
remove useless semicolons and trailing whitespace
Merge pull request #709 from robotboy655/globalfix

Fix fuckups by Pull Request #705