moved map to document.ready