text: $(document).ready(function() {
      $("#iGitEdit").hide();
      Handlebars.registerHelper('releasenotesdiv', function(version) {
          return getReleaseNotesDivId(version);
      });
      Handlebars.registerHelper('formatdate', function(date) {
          return formatDate(date);
      });
      $.getJSON(archived_versions_json, function(data) {
  	    data.sort(function(a, b) {
  	       return new Date(b["release-date"]) - new Date(a["release-date"]);
              });
          updateReleaseTable(data);
      });
  });
  
  function updateReleaseTable(allData) {
      $.get('/hbs/all_release_notes.hbs', function(data) {
          var template = Handlebars.compile(data);
          var elements = $('<div class="cAllReleaseNotes"></div>');
          allData.forEach(function(item) {
              elements.append(template(item));
              var version = item["version"]
              $("#toc_list").append(
                  '<li class="toctree-l3"><a href="#' + getReleaseNotesDivId(version) + '">' + version + '</a></li>'
              );
          });
          $("#release-notes").after(elements);
          allData.forEach(function(item) {
              var version = item["version"];
              var releaseNoteUrl = getReleaseNoteURL(version);
              if (releaseNoteUrl) {
                  $.get(releaseNoteUrl, function(data) {
                      $("#" + getReleaseNotesDivId(version) + "_note").html(data);
                      hljs.initHighlighting.called = false;
                      hljs.initHighlighting();
                      initCodeLineNumbers();
                  });
              }
  
          }, 'html');
  
      }, 'html');
  }
  
  function getReleaseNotesDivId(version) {
      var suffix = "-notes";
      return (version + suffix).replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "");
  }
  
  function getReleaseNoteURL(version) {
      return base_download_url + "/" + version + "/" + releaseNoteFilename;
  }
  