change document to window because .scroll doesn't work in ie8
debugging
use window for scrolltop too
Merge remote-tracking branch 'origin/master'