support JSONP callbacks in API