Use localStorage instead of sessionStorage. Fix error preventing autoupdating.