I am making a dynamic page that contains several divs that change when the user selects to go to the next passage on my page. However, I cannot get my website to load the first set of information. 
The HTML contains these blank divs, and then my function loads in a JSON file and changes the divs by their ID's. When I first load my page, these divs appear without text. Could it be that my javascript is not running when the page is first loaded? Here is an example of my HTML:

```
<div id="passage-section">
<!-- Title -->
<div id="passage-title"></div>
<!-- The panel that will display the content -->
<div id="passage"></div>
<!-- Button that when clicked activates a dialog box for the passage. -->
<button id="max-passage" class="max"></button>
</div>

```

And here is my function:

```
//This section of code handles the calling of the first passage.  
//Loading in the JSON file and changing the contents of the page.
function loadFirstPassage()
{
    var timeout = 250;
    //load the new JSON file and change the elements
    $.getJSON("passages/2.1.1.json", function( data ) {
        document.getElementById("passage-title").innerHTML = data["passageNumber"];
        document.getElementById("passage").innerHTML = "<p class='serif'>".concat(data["reading"]).concat('</p>');\

        //fading the elements back in
        $("#passage-title").fadeIn(timeout);
        $("#passage").fadeIn(timeout);
   });
}

```

I tried calling this function in the body and that did not work, so currently it is getting called in the head.

```
<head>  
<!--The orginal load of the page   maybe it works, who knows? -->
<script>
$(window).load(function()
{
  loadFirstPassage();
});
</script>

```