Update document.width and document.height to use document.body.clientWid...

...th and document.body.clientHeight instead