Index: src/django_gheat/website/static/heatmap_extensions_test.js
===================================================================
--- src/django_gheat/website/static/heatmap_extensions_test.js	(revision 9233)
+++ src/django_gheat/website/static/heatmap_extensions_test.js	(revision 9234)
@@ -33,23 +33,14 @@
 // Uses zoomlevel en mouseposition to call the nodelist.py view. View returns nodes in json format which is read and printed in document element.
 function getNodeList(zoomlevel, mousepos) {
-  var url = "/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon;
-  var ajax = new AjaxRequest(url, setNodeList); 
-  ajax.doGet(); 
-}
-
-
-function setNodeList(responseText) {
-  json_nodelist=eval('(' + responseText + ')');
-  if (json_nodelist.length>0){
-    list = 'Wireless Leiden nodes on mouseposition:<br /><b>';
-    for (var i=0; i<json_nodelist.length; i++){
-      list += json_nodelist[i].fields.ssid + '<br />';
+  $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon, 
+    function(json) {
+      content = 'Wireless Leiden nodes on mouseposition:<br /><b>';
+      $.each(json, function(i,json){
+        content += json.fields.ssid;
+      });
+      content += '</br>';
+      $("#node_list").html(content);
     }
-    list += '</b>';
-  }
-  else{
-    list = 'No nodes to display.';
-  }
-  document.getElementById('node_list').innerHTML=list;
+  );
 }
 
