$("#page").bind("scroll",function(e){ //page is the ID of the div im scrolling
if ( ( $(this).height() + $(this).scrollTop() ) => $(this).innerHeight() )
{
//Test it first without padding. Then see if you need to tweak the left part of the condition
}
});