For performance consider moving this to a block at the end of the body 

```html
 {% block scripts %}
... code here ....
 {% endblock scripts %}
</body>
```

We also need to replace the Leaflet stuff with OpenLayers (Wax has a connector for OL)