Changed document height and width detection to work on desktop browsers.
Merge pull request #2 from sjohnkennedy/master

Changed document height and width detection to work on desktop browsers.