add pagination + javascript caching for search results