Automatically generate js/config.js