refactoring
setup the config.json & config.json.js for both client & server to share