Fix: IE10 or lower incorrectly determines the scrollheight of the body. ...

IE10 or lower incorrectly determines the scrollheight of the body. Use document.documentElement for IE. To make this browser agnostic, the maximum scrollheight of both body and documentElement is used.