Refactoring maps js
Refactoring maps js