split server.js into several files