fixed refactor bug in start.js