title: How to check the integrity of loaded Javascript code
body: <p>I run a Bitcoin wallet that uses browser side Javascript to encrypt and decrypt Bitcoin keys.</p>
  
  <p>I want to make the javascript available for scrutiny on Github, and then load the javascript from the github repository.</p>
  
  <p>My problem is I need to check the integrity of the loaded Javascript to ensure at hasn't been tampered with at Github.</p>
  
  <p>How can I best do this ? Would it be something like.</p>
  
  <ol>
  <li>Load remote Javascript with an ajax call.</li>
  <li>MD5 hash and compare.</li>
  <li>If in good shape execute it.</li>
  </ol>