anchor.diff:            });
   
   
  -
  -
  -          // 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);
  +          // Necessary params for wax and infowindow
  +          var cartodb_params = {
  +                cartodb_sql         : cartodb_sql,
  +                cartodb_style       : cartodb_style,
  +                cartodb_user_name   : cartodb_user_name,
  +                cartodb_table_name  : cartodb_table_name,
  +                cartodb_table_id    : cartodb_table_id,
  +                cartodb_map         : carto_embed_map,
  +                cartodb_map_canvas  : 'map_cartodb_container'
  +              }
  +
  +
  +          // Add wax interaction
  +          addCartoDBInteraction(cartodb_params);
   
   
             // 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),
  +              url: 'http://'+cartodb_user_name+'.' + SQL_SERVER + global_api_url+ 'sql/?q='+escape('select ST_Extent(the_geom) from '+ cartodb_table_name),
                 dataType: 'jsonp',
                 success: function(data) {
                   if (data.rows[0].st_extent!=null) {
  
positive.code:             <% end %>
  
          
          var sql,style,params = <%= request.query_string.split('&').to_json.html_safe %>;
          
          // Getting vars
          for (var i = 0, length = params.length; i<length; i++) {
            if (params[i].search('style=%23') != -1) {
              style = params[i].replace('style=','');
            }
            if (params[i].search('sql=') != -1) {
              sql = 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.0/jquery.min.js"></script>
        <script type="text/javascript">
          $(function() {
            // If there is no sql
            if (sql == "") {
              sql = "SELECT * FROM " + 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);
  
negative.code: 
            // Setup your map styles
            $.ajax({
              url:TILEHTTP + '://' + cartodb_user_name + '.' + TILESERVER + '/tiles/' + cartodb_table_name + '/map_metadata',
              type: 'GET',
              dataType: 'jsonp',
              success:function(result){
  