changed document.body.offsetHeight to .height()