Refactor ResetScroll code to adjustscroll plugin