Support custom input extensions for files

My JSX files have a `.js` extension, but this filter currently only looks for `.jsx` files. This PR allows the extension to be configured:

```js
appJs = filterReact(appJs, {
  extensions: ['js']
});
```