Refactor out start.js