Pulled out homeMap into its own directive since it was getting large.