var IdsFetcher = function() {
  this.fetch_ids = function() {
    var request = new XMLHttpRequest();

    request.onload = this.ids_loaded;

    request.open("GET", "http://" + $('#service_addr').val() + "/ids", true);
    request.send();
  };

  this.ids_loaded = function () {
    setTimeout(this.fetch_ids, 10000);

    if (this.status != 200) {
      return;
    }

    var response_obj = JSON.parse(this.responseText);
    console.log(response_obj.ids);

    $('#debug_id').autocomplete({source: response_obj.ids.map(String)});
  };
};

@@ -25,20 +25,46 @@
 n() %7B%0A  
-this
+var obj_ref = this;%0A%0A  obj_ref
 .fetch_i
@@ -143,20 +143,23 @@
 nload = 
-this
+obj_ref
 .ids_loa
@@ -270,20 +270,23 @@
   %7D;%0A%0A  
-this
+obj_ref
 .ids_loa
@@ -320,20 +320,23 @@
 Timeout(
-this
+obj_ref
 .fetch_i
@@ -433,20 +433,23 @@
 N.parse(
-this
+obj_ref
 .respons

Fix problem with ids setTimeout call.