anchor.diff:  
               hljs.initHighlightingOnLoad();
   
  -            var $templateVar = $('.template-var');
  -            var $varsScope = $('.vars-scope');
  +            var $templateVar = $('#modal-template-var');
  +            var $createModal = $('#create-template-modal');
   
               $(function () {
                   $('[data-toggle="tooltip"]').tooltip()
  
positive.code: 
              });
  
              $('.add-var').on('click', function (e) {
                  e.preventDefault();
  
                  var $block = $templateVar.clone();
                  $block.removeClass('template-var').removeClass('hide');
                  $block.find('.remove').on('click', onRemoveVar);
  
                  $varsScope.append($block);
  
                  addValidateRules($block);
              });
  
              var $createModal = $('#create-template-modal');
  
              $createModal.on('show.bs.modal', function () {
                  $('.vars-scope .remove').each(function () {
                      $(this).closest('.row').remove();
                  });
              });
  
negative.code:                             vars: []
                          };
  
                          $('.vars-scope', $createModal).find('.row').each(function () {
                              var $row = $(this);
  
                              var obj = {
  