fixed the js error when invoked isScrollIntoView() with document.body only