[Fix] Fix issue with animated scrolling on HN

$(window).height() does on work on Hacker News :/. Use window.innerHeight instead.