fixed and updated server.js