Using getItem and setItem for sessionStorage