anchor.diff:  <script>
     $(document).on('click', '.gift_form_cancel', function(event) {
       event.preventDefault()
  -    var id = this.id
  +    const id = this.id
       $.get('/events/<%= @event.id %>', function(data) {
         if ($('#break_div').html() === ('<br>')) {
           $('#break_div').html("")
  
positive.code: <script>
    $(document).on('submit', '.gift-div', function() {
      event.preventDefault()
      var id = $(this).data("id");
      var values = $(".edit_gift", this).serialize();
      var posting = $.post(`/events/<%= @event.id %>/gifts/` + id, values);
      posting.done(function(data) {
        var index = this.data.lastIndexOf("=")
        var name = this.data.substring(index+8)
        if (typeof data === "string") {
          $.get('/events/<%= @event.id %>/gifts/' + id + '/edit', function(data2) {
            $('#gift-element-' + id).html(data2)
  
negative.code: 
                  return a < b ? -1 : a > b ? 1 : 0;
              });
  
              sortedGivers.forEach(function(giv) {
                gift.appendGivers(gift.id, giv.id, giv)
              })
  