added a configurable scrollTarget for cases where the window is not the scrolled element, defaults to $(window)