how to store data in localstorage in javascript