Refactoring simpleServer.js and spliting into more files