setScroll method for a scrollbar, few fixes