- updated viewportHeight and documentHeight calculation methods