Ciao,
Ho copiato il tuo codice javascript e mi sono creato l'html:
codice:
<!DOCTYPE html>
<html>
  <head>
   <style>
      #map {
        width: 500px;
        height: 400px;
      }
    </style>
	<script src="https://maps.googleapis.com/maps/api/js"></script>
	<script src="googlemap.js"></script>
	<script>
window.onload=function(){
	initMap();
}
	
	</script>
  </head>
  <body>
    <div id="map"></div>
  </body>
</html>
e la mappa me la mostra...