Save prefs in localStorage