How can I calculate when scroll is near bottom by this function:

```
$(window).bind( "scroll", function(){ 
    console.log($(window).height());//window heigth
    console.log($(window).scrollTop()); //returns scroll position from top of 
});

```

Do I need something else?