Make compatible with Browserify