title: ePub and Javascript
body: <p>I'm using a MacBook Air and have been looking into ePub creation. I've taken a copy of the epub3 boilerplate from github <a href="https://github.com/reitermarkus/epub3-boilerplate" rel="nofollow">click here</a>. I have in a javascript file added the following</p>
  
  <pre><code>var txt = document.createTextNode(" This text was added to the DIV.");
  document.getElementById('contenty').appendChild(txt); 
  </code></pre>
  
  <p><code>&lt;script src='../js/main.js'&gt;&lt;/script&gt;</code></p>
  
  <p>When I open the compiled epub in iBooks it doesn't show <code>This text was added to the DIV.</code> in the div <code>#contenty</code>.</p>
  
  <p>Using <a href="https://www.google.co.uk/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0CDEQFjAA&amp;url=https://itunes.apple.com/gb/app/kitabu/id492498910?mt=12&amp;ei=Kr10U4byAemO7AbwnoFo&amp;usg=AFQjCNH-wNWUAjyA9VcOgxWw0acIQtm_BQ&amp;sig2=is0KtUedI07Tf22kIdKvAw&amp;bvm=bv.66699033,d.ZGU" rel="nofollow">Kitabu</a> it actually works but is there a way to get Javascript to work in iBooks?</p>
  
  <p>Thanks</p>