Long-polling chat on node.js