Remove unused code
Refactoring: convert config.js to json format