Widget issue

I wanna build a widget like this in Win10: GitHub - botfront/rasa-webchat: A feature-rich chat widget for Rasa and Botfront. But the script is not working, sometimes the widget isn’t showing up, & sometimes even if it shows up, but it fails show the msg from rasa. I’ll attach the files:

index.html:

<head>

  <title>apunhitch god h</title>

</head>

<body>

  <div id="webchat"></div>

  <script src="https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.min.js"></script>

  // you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js

  <script>

    WebChat.default.init({

      selector: "#webchat",

      initPayload: "/get_started",

      customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket

      socketUrl: "http://localhost:5005",

      socketPath: "/socket.io/",

      title: "Title",

      subtitle: "Subtitle",

      params: {"storage": "session"} // can be set to "local"  or "session". details in storage section.

    })

  </script>

</body>

Could you check whether there are any errors in the developer console?

Is there a way to make custom UI, by making small changes to index.js file