<html>
<head>

<script src="runtime.js"></script>
<script src="fact.js"></script>

<script>
plt.runtime.invokeMains();

plt.runtime.ready(function() {
   var myFactClosure = plt.runtime.lookupInMains('fact');
   var myFact = plt.baselib.functions.asJavaScriptFunction(
        myFactClosure);

   myFact(function(v) {
              $('#answer').text('computed.  Printing...');
              setTimeout(function() { $('#answer').text(v.toString()); }, 0);
          },
          function(err) {
              $('#