fixing extension option for browserify

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