use window instead of document to observe scrolling
optimize in minimizing
use var to access window obuject to minify more
project comment