anchor.diff:                      }
                   }
   
  -                if(ALL_ATTRIBUTES_MANDATORY){
  +                if (ALL_ATTRIBUTES_MANDATORY) {
   
                       var selectedAttributes = container.jstree(true).get_selected();
  -                    var allSelected = compareArrays(allAttributes,selectedAttributes) ? true : false;
  -
  -                    if(!allSelected){
  +                    var allSelected = compareArrays(allAttributes, selectedAttributes) ? true : false;
  +
  +                    if (!allSelected) {
                           $("#attribute_selection_validation").modal();
                           return false;
                       }
  
positive.code:         <%
              if (hasPurposes) {
          %>
              renderReceiptDetails(<%=purposes%>);
          <%
              }
          %>
          
          function renderReceiptDetails(data) {
  
              var treeTemplate =
  
negative.code:                 mappedElem;
  
              // First map the nodes of the array to an object -> create a hash table.
              for (var i = 0, len = arr.length; i < len; i++) {
                  arrElem = arr[i];
                  mappedArr[arrElem.id] = arrElem;
                  mappedArr[arrElem.id]['children'] = [];
  