real-time analytics using node.js and socket.io