Only add DOM-related underscore extensions if we're in the browser.