A few nitpicks.

1. Remove var shadow from Scrollend.
2. Change 'this' refs to 'window', as that is more clear
3. Remove 'self' var, 'cause
4. Change docs so 'new' is used
Got rid of the var mutation, which always looks weird to me. Also added a few inline comments.