Javascript Search API client + small bug fixes