anchor.diff:  </script>
   
   <script>
  +  $(document).on('page:load ready', function() {
  +    show_branches();
  +  });
  +</script>
  +
  +<script>
     var branches = {};
     var request = null;
     function fetch_branches (address_field) {
  
positive.code:     <div class="form-row">
        <div class="field-container">
          <%= f.label :scm_type, class: 'control-label' %>
          <%= f.select( :scm_type, @repository_types, {}, class: 'tooltip-control', onchange: "show_branches(this);" ) %>
        </div>
        <div class="help-container">
          <p>
  
negative.code:     el.empty(); // remove old options
  
      console.log(address);
      if(branches[address] != null) {
        fill_options(branches[address], el);
        return;
      }
  