code: function GroceryEntryView(grocery, app) {
    var entryView = this;
    this.app = app;
    this.grocery = grocery;
    this.nameView = $("<span>");
    this.toBuyView = $("<span class=badge>");
    this.li = $("<li class='list-group-item grocery-item'></li>")
        .html(this.nameView)
        .append(this.toBuyView)
        .click(function () { entryView.showBought(); });
  }
docs: GroceryEntryView //////////////////