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:                                         .col-xs-3
                                              a.btn.btn-success.add-var(href='#add-new-var', title=buttonsTxt.add)
                                                  i.fa.fa-plus
                                      .row.template-var.hide
                                          .col-xs-3
                                              .form-group
                                                  input.form-control.var-name(name='var-name', placeholder=modal.fields.vars.name, type='text')
  
negative.code: 
              });
  
              $('.add-var', $createModal).on('click', function (e) {
                  e.preventDefault();
  
                  var $block = $templateVar.clone();
                  $block.removeClass('template-var').removeClass('hide');
                  $block.find('.remove').on('click', onRemoveVar);
  
                  $(this).closest('form').find('.vars-scope').append($block);
  
                  addValidateRules($block);
              });
  
              $createModal.on('show.bs.modal', function () {
                  $('.vars-scope .remove', $createModal).each(function () {
                      $(this).closest('.row').remove();
                  });
              });
  