Change to be Firefox compatible. Error at the document.height level: not cross browser
Merge pull request #5 from ThomasG77/firefox_compatibility

Change to be Firefox compatible