Actually use localStorage and sessionStorage to ensure they work