add a example of localstorage and indexeddb