I'm simply trying to do something once the scroll position of the page reaches a certain height. However
var scrollPost = $(document).scrollTop();
For some reason, removing 'height: 100%' from my html and body tags fixed this issue.
I hope this helps someone else!