anchor.diff:  <c:forEach items="${activities}" var="activity">
   activitiesByType[${activity.type.id}].push({ name: '${activity.name}', id: ${activity.id} })
   </c:forEach>
  +var activitiesAutocompleter;
   var initiallySelectedActivity = ${empty selectedActivity ? 0 : selectedActivity.id}
   
           function currentActivityCount() {
  
positive.code:                     <c:forEach items="${activityTypes}" var="activityType"><option value="${activityType.id}" <c:if test="${selectedActivity.type.id == activityType.id}">selected="selected"</c:if>>${activityType.name}</option></c:forEach>
                  </select>
                  <input id="activities-autocompleter-input" type="text" autocomplete="off"/>
  
                  <input type="hidden" id="add-activity"/>
  
  
negative.code:         registerCellInputHandlers(input)
      });
      Event.observe('add-activity-button', 'click', addActivityRow)
      Event.observe('add-activity-button', 'click', resetActivitiesAutocompleter)
  //    Event.observe('return-to-template', 'click', returnToTemplate)
  }
  
  