Ah I remember why this doesn't work, Browserify changes window so that it isn't actually _window_. If you want window from browserify you have to use global, which doesn't exist in the browser. However, there is a nicer way to do this along those lines, which I'll push up right now. Good flying!