fix bug in jumping to page and zooming into article due to miscalculated scrollTop offset
remove some unnecessary code