Improved localStorage reset