moved map load to document.ready and capture click events.