Fixed Mega Search to be AJAX API compliant.