Improved simple search with AJAX and pagination