Fixed to using localStorage methods instead of keys to fix data persistency problems on the phone.