mapbox templates

home.js replaced by mapbox.js functions in base.