Infinite-Scroll plugin code improvements