simple usage of localstorage API