Add LocalStorage persistence.