Naieve Bayesian Classifier in pure javascript.