Improve structure and update dependencies

Hi!

I just want to share my little improvements:
* Improve structure
* Update dependencies (mustache and leaflet)
* Repo cleanup

_Please note_ the second commit **only** change the JavaScript code (i.e. nothing :smile:).

Feel free to take it or not.
:sunrise: