Split config.js and main.js