Is my javascript good for google maps API?
<p>I'm using squarespace to build my website and want to insert a custom map from google maps javascript api. I've followed tutorial from W3school and from Google's own tutorial to build my map and follow steps as below :</p>

<p>What I'm trying to archive is a map like this 
<a href="http://i.stack.imgur.com/l5xEk.jpg" rel="nofollow">google map example</a></p>

<p><strong>Step 1</strong>: Insert a embed block for html</p>

<pre><code>&lt;div id= "map"&gt;&lt;/div&gt;
</code></pre>

<p><strong>Step 2</strong>: insert javascript in page header </p>

<pre><code>&lt;script
src="http://maps.google.cn/maps/api/js?key=my-key"&gt;
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
function initMap() {
  var map = new google.maps.Map(document.getElementById(‘map'), {
    zoom: 12,
    center: {lat: 48.877412, lng: 2.359221},
    mapTypeId: google.maps.MapTypeId.ROADMAP
  });

  // Define the LatLng coordinates for the polygon's path.
  var 10th = [
    {lat: 48.883863,  lng: 2.349500},
    {lat: 48.870752,  lng: 2.347915},
    {lat: 48.867593,  lng: 2.363981},
    {lat: 48.872958,  lng: 2.377065},
    {lat: 48.877800,  lng: 2.370605},
    {lat: 48.882765,  lng: 2.370164},
    {lat: 48.884218,  lng: 2.368480},
    {lat: 48.884670,  lng: 2.360258},
    {lat: 48.883863,  lng: 2.349500}
  ];

  // Construct the polygon.
  var 10th = new google.maps.Polygon({
    paths: triangleCoords,
    strokeColor: '#FF0000',
    strokeOpacity: 0.8,
    strokeWeight: 2,
    fillColor: '#FF0000',
    fillOpacity: 0.35
  });
  10th.setMap(map);

}
&lt;/script&gt;
</code></pre>

<p><strong>Step 3</strong> : in custom css section</p>

<pre><code>#googleMap {
width: 100%;
height: 380px;
}    
</code></pre>

<p>But so far, I got either a blank page once javascript injected or error page (with code visible on top of the page... )</p>

<p>Here the link to my webpage on SquareSpace <a href="https://handa-cheng-a3wm.squarespace.com/1starrondissement" rel="nofollow">https://handa-cheng-a3wm.squarespace.com/1starrondissement</a></p>

<p>Thanks !</p>