Simple Statistics, a JS library for doing statistics
macwright.org
macwright.org
"Create a bayesian classifier."
I think it should say
"Create a naive bayes classifier."
A "bayesian" classifier is a class of classifiers, not a particular algorithm. Naive bayes isn't (in most implementations) Bayesian! Finally you should specify what smoothing, if any, you use.
Hope that helps!