add debugging logging in endlessScroller.js