anchor.diff:  
             // Setup your map styles
             $.ajax({
  -            url:TILEHTTP + '://' + user_name + '.' + TILESERVER + '/tiles/' + table_name + '/map_metadata',
  +            url:TILEHTTP + '://' + cartodb_user_name + '.' + TILESERVER + '/tiles/' + cartodb_table_name + '/map_metadata',
               type: 'GET',
               dataType: 'jsonp',
               success:function(result){
  
positive.code:           });
  
  
  
  
            // Add the cartodb tiles
            var cartodb_layer = {
              getTileUrl: function(coord, zoom) {
                return TILEHTTP + '://' + user_name + '.' + TILESERVER + '/tiles/' + table_name + '/'+zoom+'/'+coord.x+'/'+coord.y+'.png?sql=' + sql + '&style=' + style;
              },
              tileSize: new google.maps.Size(256, 256)
            };
            var cartodb_imagemaptype = new google.maps.ImageMapType(cartodb_layer);
            carto_embed_map.overlayMapTypes.insertAt(0, cartodb_imagemaptype);
  
  
            // Zoom to your geometries
            function getCartoDBBBox() {
              $.ajax({
                method: "GET",
                url: 'http://'+user_name+'.' + SQL_SERVER + global_api_url+ 'sql/?q='+escape('select ST_Extent(the_geom) from '+ table_name),
                dataType: 'jsonp',
                success: function(data) {
                  if (data.rows[0].st_extent!=null) {
  
negative.code:             <% end %>
  
          
          var cartodb_sql,
              cartodb_style,
              cartodb_params = <%= request.query_string.split('&').to_json.html_safe %>;
          
          // Getting vars
          for (var i = 0, length = cartodb_params.length; i<length; i++) {
            if (cartodb_params[i].search('style=%23') != -1) {
              cartodb_style = cartodb_params[i].replace('style=','');
            }
            if (cartodb_params[i].search('sql=') != -1) {
              cartodb_sql = cartodb_params[i].replace('sql=','');
            }
          }
        </script>
  
        <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script type="text/javascript" src="http://cartodb.s3.amazonaws.com/embed/wax.g.js"></script>
  
        <script type="text/javascript">
          $(function() {
            // If there is no sql
            if (cartodb_sql == "") {
              cartodb_sql = "SELECT * FROM " + cartodb_table_name;
            }
  
            var cartodbMapOptions = {
                    zoom: 2,
                    center: new google.maps.LatLng(0,0),
                    disableDefaultUI: true,
                    mapTypeId: google.maps.MapTypeId.ROADMAP
                  };
  
  
            // Init the map
            var carto_embed_map = new google.maps.Map(document.getElementById("map_cartodb_container"),cartodbMapOptions);
  