index file and made server.js into a module