dynamically generate config.js