Implement an inline AJAX request for search with XMLHTTPRequest (XHR)