changed calculation to grab from window.innerHeight instead of window.outerHeight