[TASK] refactor start.js; pull out config