trying to fix the DOM window-load event and transition response for the map