Change the check from
scrTop = $("html, body").scrollTop();
To
scrTop = $("body").scrollTop();
This will detect how far away from the top the user is.
Edit: This should be set with
scrTop = $(window).scrollTop();
Ass explained here: https://stackoverflow.com/a/2422159/1809751