window.Promise && window.fetch;
      }

      function loadScript(src, done) {
        const js = document.createElement('script');
        js.src = src;
        js.onload = function() {
          done();
        };
        js.onerror = function() {
          done(new Error('Failed to load script ' + src));
        };
        document.head.appendChild(js);
      }
    </script>
  </body>
</html>
