private store for the browser and node.js