code: function prepareGlobalDocument () {
          var ddEStyle, bodyStyle,
  
              ddE = document.documentElement,
              body = document.body,
  
              ddEComputedStyles = useGetComputedStyle ? window.getComputedStyle( ddE, null ) : ddE.currentStyle,
              bodyComputedStyles = useGetComputedStyle ? window.getComputedStyle( body, null ) : body.currentStyle,
  
              ddEOverflowX = ( ddEComputedStyles.overflowX || ddEComputedStyles.overflow || "visible" ).toLowerCase(),
              bodyOverflowX = ( bodyComputedStyles.overflowX || bodyComputedStyles.overflow || "visible" ).toLowerCase(),
  
              modifyBody = bodyOverflowX !== "hidden",
              modifyDocumentElement = ddEOverflowX === "visible",
  
              initialState = {
                  documentElement: {
                      modified: modifyDocumentElement
                  },
                  body: {
                      modified: modifyBody
                  }
              };
  
          if ( modifyDocumentElement ) {
              ddEStyle = ddE.style;
              initialState.documentElement.styleOverflowX = ddEStyle.overflowX;
              ddEStyle.overflowX = "auto";
          }
  
          if ( modifyBody ) {
              bodyStyle = body.style;
              initialState.body.styleOverflowX = bodyStyle.overflowX;
              bodyStyle.overflowX = "hidden";
          }
  
          return initialState;
  
      }
docs: Makes sure the body (but not the window) hides its overflow. Works with the global document, returns the initial
  state before manipulation (including properties indicating what has been modified).
  
  Used only if iframe creation or access has failed for some reason.