added wrapper around patron api for search ajax call