Fixing localStorage methods (my memory was wrong)