Set this.Window and this.Document to null on unload. #2329

Fix for issue #2329

Tested in IE7, 8, 9 and 10, and the latest releases Firefox and Chrome.
Frees up large amounts of memory when navigating away from a page.
Why need to reset here?