Strict mode statement causes functions to be undefined
<p>I've wrapped all my functions around an immediately-invoked function expression as shown:</p>

<pre><code>(function(){
  "use strict";

  function toggleComment(parentCommentID) {
    $("form#" + parentCommentID).toggle();
  }

  function scrollBottom() {
    window.scrollTo(0, document.body.scrollHeight);
  }

})();
</code></pre>

<p>However, upon calling one of these functions through a link:</p>

<pre><code>&lt;a href="javascript:void(0)" onclick="toggleComment(159); return false;"&gt;Reply&lt;/a&gt;
</code></pre>

<p>The Chrome console outputs <code>Uncaught ReferenceError: toggleComment is not defined</code>. Am I mistaken in thinking that an immediately-invoked function expression, as its name suggests, should be invoked immediately and therefore <code>toggleComment</code> should be called? Should I call the function differently?</p>
