Fix bug 0000146 - Graphs sometimes disappear on Firefox 33.0

 - move Javascript include at the end of all templates (in footer.tpl)