Fix to work with Browserify