add debugging console logging to endlessScroller.js