Can javascript be used in an html app?

I am wanting to install a Cloudflare app for a live chat messenger that does not currently have a standalone app. I placed the script into an html app but it does not seem to be working. Am I entering my script in the correct place?