Finished the inclusion of the posteriors in the JS creation