Update Bayesian

Fixed loadJSON function