converted direct call to config.json to config.js for dynamic configurations