Move home only functionality from map javascript. Don't include all javascripts