Node.js Naive Bayes classifier