Use $(document).scrollTop() instead of $('body').scrollTop() when calculating footer state.

Fixes #15