How do I combine JavaScript and HTML into a script tag for embedding? [closed]

I’ve been tasked at my internship with adding a range slider with styling into The Gohighlevel platform. I’m very confused on how to write it altogether so they can add it to a section of the site. There is a place in gohighlevel to add custom html/JS but I’m just not sure how to write it. As a disclaimer they’ve had me recreate this slider from react so it can go into the site. I’ve done all of that. I just need an example of how I should write it so they can just embed it on the site and it works. Any help would be appreciated. I find very little documentation about custom code on gohighlevel so it’s getting frustrating. I’ve never done anything like this.