Caching stories in localstorage