caching ajax request in localStorage