Fix for issue 49: determining the document's height (cross-browser)