Fix fuckups by Pull Request #705

Those variables MUST be global for the dupes/saves tabs to work.
Also remove useless semicolons and trailing whitespace