How to modularise whats left os server.js?