updated javascript to employ caching of search results for 24 hours