nreadystatechange", readyStateChange);
          window.attachEvent("onload", ready);
      }
      readyEventHandlersInstalled = true;
  }
}
})("docReady", window);

   window.docReady(function() {
     
      if(klampt_frontend == null) {
        init();
      }
      if(Object.keys(animation).length == 0) {
        var controls = document.getElementById("controls");
        controls.style.display = 'none';
      }
   });

</script>
