I wonder if this is correct. `opts.scrollContainer` defaults to `$('window')`, so there seems to be a relation between `$('window')` and `$('html, body')`. Or are you sure `$('window').scrollTop(curThreshold);` does the same as `$('html, body').scrollTop(curThreshold);`?