Namespacing javascript for map.
Cleaning up map js.