new persist support in js library