Add localStorage snippet