Data mining in node.js