It is being used to respond to the ajax request, do the full searching.  The font end code is modular and was swapped out for a textarea field based autocomplete library rather than an input field based library.