modified server.js to echo server