Fix fuckups by commit #705

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