Update scroll.js

fixes a bug in upper scroll