interface for sessionStorage and localStorage javascript objects