Updating main.js when config files change