safer access to window.localStorage
-> 1.0.9-localstorage