title: Javascript Toggle Translations of Title onClick
body: <p>I have a title within a div tag. 
  I need to translate the title whenever a translate button is clicked.
  I have so far gotten to the point where i find the title div and want to change the contents of it by using a <code>languageMap</code>. But its not functioning! Any ideas?</p>
  
  <pre><code>var languageMap = {
      'English1': 'French1',
      'English2': 'French2'
  }
  
    function translateTitle() {
      var qmTitle = document.getElementById('toolTitle')
      var qmTitleText = qmTitle.innerHTML    
      var translatedTitle = languageMap[qmTitleText]
      qmTitle.innerHTML = translatedTitle
  
    }
  </code></pre>