title: Calling function in javascript Google API
body: <p>I am using Google JavaScript API with geocoding and heatmap. But I am having some trouble.
  Here is my script:</p>
  
  <p>content of coords.js:</p>
  
  <pre><code>eqfeed_callback()
  </code></pre>
  
  <p>My question is, why I can not call the function <code>heatMapVisualize()</code> anywhere else except the eqfeed_callback function. When I put the function call of <code>heatMapVisualize()</code> somewhere else, it will not do it. How ever the eqfeed_callback is empty.</p>
  
  <p>My second question which is depending on the first one. How can I get rid of this function theese lines:</p>
  
  <pre><code>var script = document.createElement('script');
  script.src = 'https://www.stud.fit.vutbr.cz/~xhalin01/BP/coords.js';
  document.getElementsByTagName('head')[0].appendChild(script);
  </code></pre>
  
  <p>I dont need them anymore. There I used to store the locations for heatmapdata, but now I do it via Google Geocoder. I am new to Javascript so excuse my dumb question But I will put bounty on this.</p>