added expiry option for localStorage