Javascript bayesian network library, inference, learning