Move response code to onRequest function and moved that into start function
Create index.js that requires server.js as a module