* Omit global window object for scripts used on the background page * Validate document exists before using * Remove dom.js from background.html