code: function (obj) {
      for (var id in obj) {if (obj.hasOwnProperty(id)) {
        if (obj[id] instanceof Array) {
          var A = window.Array();
          obj[id] = A.concat.apply(A,obj[id]);
        } else if (typeof obj[id] === "object") {
          adjustArrays(obj[id]);
        }
      }}
    }
docs: Turn arrays into jsdom window arrays (so "instanceof Array" will identify them properly)