persist helper from js