anchor.diff:                      var activityCode = $('#new-inputCode').val()
                       var activityDescription = $('#new-inputDescription').val()
                       var activitySource= $('#sources').val()
  -
                   } else {
                       var activityName = $(activityRowElement).find('.inputName').val()
                       var activityTypeName = $(activityRowElement).find('.sourceTypes :selected').text();
  
positive.code:                 clearErrorMessage()
                  var activityCode = $('#new-inputCode').val()
                  var activitySource= $('#sources').val()
  
                  $.ajax({
                      url: psc.tools.Uris.relative("/api/v1/activities/"+encodeURIComponent(activitySource)+"/"+ encodeURIComponent(activityCode)),
                      type: 'GET',
                      success : function(response) {
                          var typeLabel = jQuery('<label id="error"/>').text("The activity with this code already exists for this source. Please specify the different code");
                          jQuery('#errors').append(typeLabel)
                      },
                      error: function(response) {
                          if (response.status == 404) {
                              saveActivity(null)
                          }
                      }
                  });
              }
  
              function clearActivity() {
  
negative.code:             var statusText = response.statusText
              var userFriendlyText = fullText.replace(statusCode,  "");
              userFriendlyText = userFriendlyText.replace(statusText, "");
              var typeLabel = jQuery('<label id="error"/>').text(userFriendlyText.trim());
              jQuery('#errors').append(typeLabel)
          }
  
          function displayErrorOnInput(userFriendlyText) {
              var typeLabel = jQuery('<label id="error"/>').text(userFriendlyText.trim());
              jQuery('#errors').append(typeLabel)
          }
  