Removing index.js and formalising server.js