anchor.diff:              var agreementChk = $(".agreement-checkbox input");
               var registrationBtn = $("#registrationSubmit");
   
  -            if(agreementChk.length > 0){
  +            if (agreementChk.length > 0) {
                   registrationBtn.prop("disabled", true).addClass("disabled");
               }
  -            agreementChk.click(function(){
  -                if($(this).is(":checked")){
  +            agreementChk.click(function () {
  +                if ($(this).is(":checked")) {
                       registrationBtn.prop("disabled", false).removeClass("disabled");
  -                }else{
  +                } else {
                       registrationBtn.prop("disabled", true).addClass("disabled");
                   }
               });
   
  -            container.bind('ready.jstree', function(event, data) {
  +            container.bind('ready.jstree', function (event, data) {
                   var $tree = $(this);
                   $($tree.jstree().get_json($tree, {
                       flat: true
                   }))
  -                    .each(function(index, value) {
  +                    .each(function (index, value) {
                           var node = container.jstree().get_node(this.id);
                           allAttributes.push(node.id);
                       });
  
positive.code:         <%
              if (hasPurposes) {
          %>
              renderReceiptDetails(<%=purposes%>);
          <%
              }
          %>
          
          function renderReceiptDetails(data) {
  
              var treeTemplate =
  
negative.code:                     }
                  }
  
                  if (ALL_ATTRIBUTES_MANDATORY) {
  
                      var selectedAttributes = container.jstree(true).get_selected();
                      var allSelected = compareArrays(allAttributes, selectedAttributes) ? true : false;
  
                      if (!allSelected) {
                          $("#attribute_selection_validation").modal();
                          return false;
                      }
  