ry').innerHTML = text;
            document.querySelector('code.trace-text').innerHTML = label;
          }


          const byte2frequencies = (byte) => {
            return frequencies.filter((_, i) => {
              return byte & (1 << i);
            });
          };
          const fireEvent = (element, eventType) => {
            // Thanks to https://stackoverflow.com/a/2706236
            if (element.fireEvent) {
              element.fireEvent('on' + eventType);
            } else {
              