Simple, bare-bones Naive Bayes Classifier in JavaScript.