Refactor Auth
Refactor MapFactory
Reformat map.js