modularized server.js