Changed the way onscrollhandler is bound