Here's my code (with JQuery):

Code Javascript:
// Updates out there
updates_live = [];
 
$(document).ready(function() {
 
	// Set up!
	setup_livepulse();
 
});
 
function setup_livepulse()
{	
	// Get updates currently displayed on page
	$.get('/forums/get_livepulse', function(data) {
 
		var updates = data.split("\n");
		for (var i in updates)
		{
			if (updates[i] != '')
			{
				var udata = updates[i].split('|');
				updates_live.push(udata[0]);
			}
		}
 
	});
}
Although I define "updates_live" as global, whenever I try and access it outside of function(data){}, it returns as "undefined." However, when I access it inside function(data){}, it returns the proper values. How can I make updates_live global and accessible by other functions?