finished chat_server.js