updated scroll.js to work better