include bayes in webapp