Node.js classification algorithms