Code to parallelize JAGS model