code: function setAsRootDocument(doc) {
    rootDoc = doc;
    var window = rootDoc.defaultView;
    window.setTimeout = function(code, delay, arguments) {};
    window.setInterval = function(code, delay, arguments) {};
    anychartify(rootDoc);
  
    return rootDoc
  }
docs: region --- Utils and settings