Able to load config from an external file
Reorganized config.js to make it clearer