added support for jquery functions with multiple config hashes

For an example see http://twitter.github.io/typeahead.js/examples/#the-basics .

```javascript
$('#the-basics .typeahead').typeahead({
    hint: true,
    highlight: true,
    minLength: 1
  },
  {
    name: 'states',
    displayKey: 'value',
    source: substringMatcher(states)
});
```
This can go inside the earlier `if (extraConfigs != null) {` (line 421+)