jquery making local variable in function global
<p>I have this function that populates the currsong variable with data.
The problem is that the variable currsong is only available inside the function and I need to access it globally.</p>

<pre><code>// get a single audio url
echonest.artist(artist).audio( function(audioCollection) {
    var currsong = audioCollection.data.audio[0].url;
    return currsong;
    });
</code></pre>

<p>Thank you!</p>
