Must attach directly to window for Browserify scoping.