JavaScript wrapper for nextweb-persistence