save data to localStorage

example