separate config to config.js, move js files into js/