adding index.js and server.js