merge config.js into index.js