ready event is deferred, fixes to AJAX search