Adding support for non-async loadMore functions & window.resize

The example was breaking if the loadMore function was changed to not use setTimeout. Just flipped two lines to fix that.

Also made it attach to the window resize event so it continues to work if the user increases their window size  enough to make the scroll bars disappear.