This look ok? 

Prometheus.Graph.prototype.handleConsoleResponse = function(text, textStatus) {
  var self = this;
  var body = "<table class=\"table-striped console_table\"></table>";
  self.consoleTab.removeClass('reload');
  self.consoleTab.html(body);

  var elements = text.split("\n");
  var table = $("#console_table");
  table.find("tr:gt(0)").remove();
  for (var i = 0; i < elements.length; i++) {
    var e = "<tr><td>" + elements[i] + "</td></tr>";
    table.append(e);
  }
  console.log(table);
}