If you want to use it for demo purposes in a CDN, you must include the ArcGIS Maps SDK for JavaScriPT like this: ...
For demo2, you will need to enter your token to generate a report. For demo5 and demo6, please add your OpenAI API key in the config.js file for proper functionality.