AJAX working for seraching through documents. Adding filter but not all there at the moment