Update maps.js

Cleaned Code