Scrolling js for registration