use $(window).height() instead of window.innerHeight...
use $(window).height() instead of window.innerHeight
to measure window height when resizing contents
Sometimes these values differ by a pixel,
we may never know why.
window.innerHeight seems to be larger when they disagree, causing an extra scrollbar to be drawn.