anchor.diff:      var activity = selectedActivity()
       if (!activity.id || !activity.name) return
       var cells = []
  -    var dayCount = ${period.dayRanges[0].days}.
  -    length
  +    var dayCount = ${period.dayRanges[0].days}.length
       var rowCount = $$("#input-body tr").length - 1
       // header
       var activityName = 'grid[' + rowCount + '].activity';
  
positive.code:         function(item) {
              new Draggable(item, {revert: true});
          }
          );
  
      var x = 0;
      document.getElementsByClassName('counter').each(
  
negative.code:     }
  }
  
  function setUpMarker(draggable, dropZone) {
      var activity = (typeof(draggable.activity) != 'undefined') ? draggable.activity : dropZone.parentNode.getElementsByClassName('activity')[0].innerHTML.strip();
      if (activity == dropZone.parentNode.getElementsByClassName('activity')[0].innerHTML.strip()) {
          var marker = createMarker(activity);
          dropZone.appendChild(marker);
  
          draggable.parentNode.removeChild(draggable);
  