title: Calling JavaScript function into a P tag
body: <p>I would like to call the following javaScript function so it gets outputted to a HTML P tag, but am not sure how to do this without explicitly calling the function in the HTML file.</p>
  
  <p>I do not want to do this...</p>
  
  <pre><code>&lt;p class="showcode"&gt;
  &lt;script type="text/javascript"&gt;
      wise_words();
  &lt;/script&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I would like to keep the javaScript code all in one js file.</p>
  
  <p>I have tried it this way but this does not seem to work...</p>
  
  <pre><code>document.getElementById("showcode").innerHTML = wise_words();
  </code></pre>
  
  <p>I would really appreciate any help as to what I am doing wrong.</p>
  
  <p>Here is my code... <a href="http://codepen.io/anon/pen/qfLdE" rel="nofollow">http://codepen.io/anon/pen/qfLdE</a> I would like to have the generated text get outputted inside the grey box.</p>