Use document scroll height instead of offset height

When body height is set in absolute pixesls or percents of viewport, offsetHeight gives bad number. Use scrollHeight instead. It is also used in script few lines above this change.