$(window).scroll(function () {
        var scrollTop = $(this).scrollTop();
        var scrollHeight = $(document).height();
        var windowHeight = $(this).height();
        console.log(scrollHeight, scrollTop + windowHeight);
        if (scrollTop + windowHeight == scrollHeight) {

        }
    });