javascript for incrementally loading children of a DOM element as a user scrolls