anchor.diff:        <%= javascript_include_tag :cdb %>
         <script type="text/javascript"><%= raw Rails.application.assets['statsc.min.js'].to_s %></script>
       <% else %>
  -      <% if request.protocol == 'https://' %>
  -        <script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/cartodb.js"></script>
  -      <% else %>
  -        <script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
  +        <script src="//cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/cartodb.js"></script>
           <!-- inline statsc -->
           <script type="text/javascript"><%= raw Rails.application.assets['statsc.min.js'].to_s %></script>
  -      <% end %>
       <% end %>
   
       <script>
  
positive.code:     <% if !Rails.env.production? %>
        <%= stylesheet_link_tag 'cdb/themes/css/cartodb' %>
      <% else %>
       <% if request.protocol == 'https://' %>
          <link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/themes/css/cartodb.css" />
       <% else %>
          <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
       <% end %>
  
      <% end %>
  
    </head>
    <body>
  
negative.code: 
        $(document).ready(function(){
  
          if (location.protocol.indexOf('https') === -1) {
              statsc.connect('http://<%= Cartodb.config[:graphite_public]['host'] %>:<%= Cartodb.config[:graphite_public]['port'] %>/');
              cartodb.core.Profiler.backend(function () {
                statsc.send.apply(statsc, arguments);
              })
          }
  
          var bool_fn = function(v) { return v == 'true' }
          , is_custom_install = <%= Cartodb.config[:cartodb_com_hosted].present? %>
  