Simple tcp chat server in Node.js