Manual:$wgAjaxExportList

Details
Registry for functions callable via AJAX; This is a way for extensions (and some functions) to make functions callable from JavaScript.

$wgAjaxSearch and $wgAjaxWatch cause  and   to be added to this array, respectively. See also $wgUseAjax.