fix scroll logic with scroller.js file