anchor.diff:  <script>
     $(document).on("click", '.editLink', function(event) {
       event.preventDefault();
  -    var id = $(this).data("id");
  +    const id = $(this).data("id");
       $.get('/events/<%= @event.id %>/gifts/' + id + '/edit', function(data) {
         $('#gift-element-' + id).html(data)
         $('#name_h3').html("")
  
positive.code: <script>
    $(document).on('click', '.gift_form_cancel', function(event) {
      event.preventDefault()
      var id = this.id
      $.get('/events/<%= @event.id %>', function(data) {
        if ($('#break_div').html() === ('<br>')) {
          $('#break_div').html("")
  
negative.code: <script>
    $(document).on('click', '.thank_hover', function(event) {
      event.preventDefault()
      const id = $(this).data("id")
      $.get('/gifts/' + id + '/thank', function() {
      })
      if ($(this).html() === "THANK?") {
  