old_contents: (function ($) {
      'use strict';
  
      setNextActivities();
      function setNextActivities() {
  
          $.ajax({
              url: "/next_activities"
          }).done(function (data) {
              var count = 0;
              var str = '';
              $.each(data, function (index, activity) {
  
                  if(new Date(activity.field_date_1)>new Date() && count <10) {
                      str += '<tr>';
                      str += '<td class="date">' + activity.field_date + '</td>';
                      if (activity.field_lien && activity.field_lien != '') {
                          str += '<td class="title"><a href="' + activity.field_lien + '">' + activity.title + '</a></td>';
                      } else {
                          str += '<td class="title">' + activity.title + '</td>';
                      }
                      str += '<td class="room">' + activity.field_room + '</td>';
                      str += '</tr>';
                      count ++;
                  }
              });
              $('.tournaments-home-next table').html(str);
              setTimeout(setNextActivities, 10 * 60 * 1000); //each 10 min
          });
  
      }
  })(jQuery);
  
new_contents: (function ($) {
      'use strict';
  
      setNextActivities();
      function setNextActivities() {
  
          $.ajax({
              url: "/next_activities"
          }).done(function (data) {
              var count = 0;
              var str = '';
              $.each(data, function (index, activity) {
  
                  if(new Date(activity.field_date_1+"Z")>new Date() && count <10) {
                      str += '<tr>';
                      str += '<td class="date">' + activity.field_date + '</td>';
                      if (activity.field_lien && activity.field_lien != '') {
                          str += '<td class="title"><a href="' + activity.field_lien + '">' + activity.title + '</a></td>';
                      } else {
                          str += '<td class="title">' + activity.title + '</td>';
                      }
                      str += '<td class="room">' + activity.field_room + '</td>';
                      str += '</tr>';
                      count ++;
                  }
              });
              $('.tournaments-home-next table').html(str);
              setTimeout(setNextActivities, 10 * 60 * 1000); //each 10 min
          });
  
      }
  })(jQuery);
  
subject: Fix next activities on start date and not end date