localStorage example; fix usage