Removed extra window.scrollTo call