$(document).ready(function(){
	var dataSource = "http://data.seattle.gov/api/views/kzjm-xkqj/rows.json?jsonp=?&max_rows=100";

	$.ajax({
		type : "GET",
		dataType : "JSONP",
		url : dataSource,
		success: function(result) {
			console.log(result.data);

			var incidents = [];
			$.each( result.data, function( i, incident ) {
				console.log(incident);

				// Incident ID 	[14]
				// Address		[8]
				// Type 		[9]
				// Datetime 	[10]
				// Lat 			[11]
				// Long 		[12]

				var incidentID = incident[14];
				var address = incident[8];
				var type = incident[9];
				var date = new Date(incident[10] * 1000);
				var lat = incident[11];
				var long = incident[12];

				incidents.push('<tr><td>' + incidentID + '</td><td>' + type + '</td><td><a href="map.html?id=' + incidentID + '&lat=' + lat + '&long=' + long + '">' + address + '</a></td><td>' + date.toLocaleTimeString() + ' ' + date.toLocaleDateString() + '</td></tr>');
			});

			$("#log").append(incidents.join(''));
		},
		error: function(xhr, status, error) {
		  	console.log(JSON.parse(xhr.responseText));
		}
	});
});
@@ -1,22 +1,25 @@
-$(document).ready(
+var log = %7B Refresh: 
 func
@@ -121,16 +121,47 @@
 ws=100%22;
+%0A%09console.log('refreshing...');
 %0A%0A%09$.aja
@@ -255,37 +255,8 @@
 t) %7B
-%0A%09%09%09console.log(result.data);
 %0A%0A%09%09
@@ -330,36 +330,8 @@
 ) %7B%0A
-%09%09%09%09console.log(incident);%0A%0A
 %09%09%09%09
@@ -1057,13 +1057,183 @@
 %0A%09%09%7D%0A%09%7D)
+.complete(function()%7B%0A%09%09//Refresh feed every 5 minutes.%0A        setTimeout(function()%7Blog.Refresh();%7D, 300000);%0A    %7D);%0A%7D %7D;%0A%0A$(document).ready(function()%7B%0A%09log.Refresh()
 ;%0A%7D);

Set log to refresh every 5 minutes