AJAX search results are logging correctly