I am working with jQuery and I need to handle the data gathered during an AJAX call outside of the AJAX object:

```
function getData(yt_url) {
    $.ajax({
        type: "GET",
        url: yt_url,
        dataType: "jsonp",
        success: function(response) {
            //   Return response here //

        },
        error: function(request, status, error) {
            alert(status);
        }
    });
}

```

I would like to call the function `getData` and receive the response object in the AJAX success function.

I've tried adding some returns and then of course I realized it was an object.