code: function (items) {
              var that = this;
  
              items = $(items).map(function (i, item) {
  //                i = $(that.options.item).attr('data-value', item)
                  i = $(that.options.item).data('item', item);
                  i.find('a').html(that.highlighter(item));
                  return i[0];
              });
  
              //add option to disable autoselect of first line
              //see https://github.com/twitter/bootstrap/pull/4164 
              if (this.options.autoSelect) {
                items.first().addClass('active');
              }
              this.$menu.html(items);
              return this;
          }
docs: /*
  Overwrite typeahead's render method to store objects.
  There are a lot of disscussion in bootstrap repo on this point and still no result.
  See https://github.com/twitter/bootstrap/issues/5967
  
  This function just store item via jQuery data() method instead of attr('data-value')