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

Fix for issue 49 as described in https://github.com/cferdinandi/smooth-scroll/issues/49