Update script.js

Changed values for scrolling in if statements.