Factor callback out of createServer()
Abstract server.js as a module