In browserify (and commonjs in general i think?)  `this` refers to the module, not the window.. so in this case `window` is just an empty object.    removing the window qualifier seemed like a much less invasive change than renaming the initial function parameter..