switch to localStorage from custom .json preference file