title: call function in another HTML file
body: <p>I am trying to call another function in a different HTML file
  would I do something like this:  </p>
  
  <pre><code> &lt;script type = "text/javascript" src = "otherfile.html"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This is the function getting called </p>
  
  <pre><code>        function rankedScores(music, pattern) { 
              var scoresArray = urlScores(music, pattern);  
  
              function swap(a, b) {
                  var temp = scoresArray[a];
                  scoresArray[a] = scoresArray[b];
                  scoresArray[b] = temp;
              }
  
              for(var i = 0; i &lt; scoresArray.length; i++) {
                  for(var x = 0; x &lt; scoresArray.length - 1; x++) {
  
                      if (scoresArray[x].score &gt; scoresArray[x + 1].score) {
                          swap(x, x + 1);
                      }
                  }
              }
              generateResults(scoresArray)
          }
  </code></pre>
  
  <p>This is how im calling it:</p>
  
  <pre><code>       rankedScores(albums, document.main.search.value);
  </code></pre>