index.js: Made options for 'typeahead:autocompleted' and 'typeahead:selected' functions. Also made it so that an obj can be used as a datum, in addition to a singular name