title: Changing latitude and longitude google maps api
body: <p>I would like to change the latitude and longitude of the map when the user click in a link.
  I have tried to required maps.js when the user clicks on the link but it did not work</p>
  
  <p>maps.js</p>
  
  <pre><code>function maps(){
    lats = 53.430967;
    longs = -2.960835;
    var mapProp = {
      center:new google.maps.LatLng(lats, longs),
      zoom: 17,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
  }
  
  
  module.exports = maps;
  </code></pre>
  
  <p>stadium.js</p>
  
  <pre><code>function stadium(){
    $( "a:contains('Stadium of Light')" ).on("click", function(){
      lats = 54.914740;
      longs = -1.388371;
      google.maps.event.addDomListener(window, 'load', maps);
      window.location.href='maps.html';
    });
  </code></pre>