Make compatible with browserify