add logging to endlessScroller.js