Save events to localStorage