Using localStorage instead of sessionStorage