put the http server in its own file (server.js) and renamed main app file (index.js)