move component.js -> infinite-scroll.js