factor out config options to config.js