Update scrollPolyfill.js

Fixes:

- body not firing events
- unability to display navigation bar
- missing local variable
- debug functions conditions

JSlint used.