Update to work with Browserify