Added the document object to the browser.js