calendar events persistence: saving events to localStorage