Not sure if there\'s another question regarding this, if so I apologize and please don\'t release the hounds.
Using the html5 doctype and doing a quick console.log o
Try to use var scrollTop = $(document).scrollTop();
var scrollTop = $(document).scrollTop();