anchor.diff:      <script type="application/javascript">
         function _t(t) { return document.getElementsByTagName(t)[0]; }
         function _c(c) { return document.getElementsByClassName(c)[0]; }
  +      function round(number) { return Math.round(number * 100) / 100; }
  +      function format_duration(seconds) {
  +        var result = "";
  +        var hours   = Math.floor(seconds / 3600);
  +        var minutes = Math.floor((seconds - (hours * 3600)) / 60);
  +
  +        if (hours == 1) { result += hours + " hour"; }
  +        else if (hours > 0) { result += hours + " hours";}
  +
  +        if (hours > 0 && minutes > 0) { result += " and "; }
  +
  +        if (minutes == 1) { result += hours + " minute"; }
  +        if (minutes > 0) {result += minutes + " minutes"; }
  +
  +        return result;
  +      }
   
         var map = new L.Map('demo-map');
   
         var url = 'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg';
  -      var attribution = 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
  +      var attribution = '<a href="http://www.mapquest.com/">MapQuest</a> &mdash; Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors</a>';
         var tileLayer = new L.TileLayer(url, {subdomains:"1234",attribution: attribution});
   
         var geojson = <%= @geo_json %>;
  
positive.code: <!doctype html>
  
  <!--
    Copyright (C) 2011-2012 Pavel Shramov
    Copyright (C) 2013 Maxime Petazzoni <maxime.petazzoni@bulix.org>
    All Rights Reserved.
  
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:
  
    - Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
  
    - Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
  
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
  -->
  
  <html>
    <head>
      <title>leaflet-gpx demo</title>
  
negative.code:   </head>
    <body>
      <section id="demo" class="gpx" data-gpx-source="http://localhost:8081/mckerrow.gpx" data-map-target="demo-map">
        <article>
          <div class="map" id="demo-map"></div>
        </article>
  
        <footer>
          <ul class="info">
            <li>Distance:&nbsp;<span class="distance"></span>&nbsp;km</li>
            &mdash; <li>Moving duration:&nbsp;<span class="duration"></span></li>
            &mdash; <li>Average speed:&nbsp;<span class="average-speed"></span>&nbsp;km/h</li>
            &mdash; <li>Elevation:&nbsp;+<span class="elevation-gain"></span>&nbsp;m, -<span class="elevation-loss"></span>&nbsp;m</li>
          </ul>
        </footer>
      </section>
  