server.js changed to receive message