tweaks to the JS Persistence API.