minor cleanups to extension/modules/content/browser.js