Untested

updating the JS to be synchronous and ensure that randomization works properly (for non-hierarchical blocks this works both locally and on mturk)