Refinements to localstorage save and load