Add Document to browser globals
Merge pull request #2011 from nevir/patch-1

Add Document to browser globals