code: function getDebuggableWindows(host, port) {
          if (!host) {
              host = "127.0.0.1";
          }
          if (!port) {
              port = 9222;
          }
          var def = new $.Deferred();
          var request = new XMLHttpRequest();
          request.open("GET", "http://" + host + ":" + port + "/json");
          request.onload = function onLoad() {
              var sockets = JSON.parse(request.response);
              def.resolve(sockets);
          };
          request.onerror = function onError() {
              def.reject(request.response);
          };
  
          request.send(null);
  
          return def.promise();
      }
docs: Public Functions **************************************************** Get a list of the available windows/tabs/extensions that are remote-debuggable
  @param {string} host IP or name
  @param {integer} debugger port