Removed document.ready because the mapping function is called by leaflet
Moved mapping into its own application, changed namespace stuff