Updates to persistence JS to fix migrations bug.