Made updating of model.jags conditional on changes