modularized server.js and created blank index.js