move config to config.js