Following the tutorial on node.js to build a simple chat server