Added browserify compatibility