Packaging HTML System For Embedding

Greetings,

I have created a calculator using HTML, CSS, and JavaScript, and I need to be able to provide this system as code that anyone can paste on their website to embed the calculator.

Does anyone know how things like this are usually done? The only idea I’ve got is to have the user paste all the HTML in their website and then reference the CSS and JS files on my server. But I was hoping there was a more elegant solution than this…

Any ideas?

Thanks.