updated server.js; created index.js