using correct method for localStorage, #63