localStorage clearing properly