Fixing browserify breaking changes