 => WebAssembly.compile(bytes))
      .then(module => WebAssembly.instantiate(module, imports || {}))
      .then(instance => instance.exports);
    }

    fetchAndInstantiateWasm('./lib/dynamics-opt.wasm', {
      env: {
        randomf: Math.random,
        expf: Math.exp,
        consoleLog: console.log.bind(console)
      }
    }).then(m => {
      const circleCount = m.getCircleCount();
      const circleDataOffset = m.getCircleDataOffset();

      const circleData = new Float32Array(m.memory.buffer, c