Fix compatibility with browserify