fixing extension option for browserify

The 'extension' option wasn't working with the new browserify (2.35) because the browserify bundle doesn't expose a function called 'extension'. Instead, the extensions array is passed into the `browserify` function as `opts.extensions`.