updated server/index.js