Adding changes to allow you to extend the render functionality of the typeahead plugin.