cleanup old global config variables in main.js