Closes #8 extract dispatcher from start.js