Working results by ajax request, and paginated by proximity