Fix #12375: stop using document.body.scrollTop

Removes `document.body.scrollTop` as it's deprecated in the strict mode.

Fixes #12375.