Fix js so item saves to localStorage.