Split server.js into parts