poly fill for local / session storage