<script>
  __KLAMPT_FRONTEND_LOAD__

  //the HTML-maker code should fill this in
  var scene = __SCENE_JSON__;
  var animation = __PATH_JSON__;
  var rpcs = __RPC_JSON__;
  var dt = __TIMESTEP__;
  var compressed = __COMPRESSED__;
  var animationIndex = null;
  var animationTime = 0;
  var lastAnimateTime = null;
  var animating = false;
  var looping = true;
  var klampt_frontend = null;

  function numframes() {
    if(compressed) {
      for(var obj in animation) {
        return animation[obj].length;
 