title: Checking is near/at the bottom of the page
body: <p>I need to check if an element is x pixels from the bottom of the page, to dynamically load new content. currently, scrollTop and height do not match even if the bar is on the bottom.</p>
  
  <p>jquery is allowed, although basic javascript would be more helpful.</p>