establishes an API request using JSONP