Fix bugs in assignment JavaScript Scroll.