anchor.diff:            centered = true;
             map.panTo(myLatlng);
           }
  +        var title = <%= addr.text.to_json %>;
  +        var infowindow = new google.maps.InfoWindow({
  +          content: Mustache.render(infoTemplate.html(), {
  +            title: title,
  +            context: <%= addr.context(150).gsub(addr.text, "<b>#{addr.text}</b>").to_json %>,
  +            document_id: <%= addr.document_id.to_s.to_json %>,
  +            document_title: <%= addr.document.heading.to_json %>,
  +            page_num: <%= Page.where(:_id => addr.inner_pos["from"]["pid"]).only(:num).first.try(:num).to_json %>
  +          })
  +        });
           var marker = new google.maps.Marker({
             position: myLatlng,
             map: map,
  -          title: <%= addr.context.to_json %>
  +          title: title
  +        });
  +        google.maps.event.addListener(marker, "click", function() {
  +          infowindow.open(map, marker);
           });
         <% end %>
       }
  
positive.code: 
  <body onload="initialize()">
    <div id="map_canvas" ></div>
  </body>
  </html>
  
  
negative.code:   <title>Mapa</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html {
        height: 100%;
  