$(document).ready(function() {
// endless scrolling
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
$("body").append("<div class='item'><img src='path/to/image' width='140' height='100' /></div>");
}
});
});