Fixed API and got AJAX search working.