export function addScript(src: string, callback?: Function): string {
return `
<script type="text/javascript">
// check if the script tag already exists
const script = const scriptTag = document.querySelector(script[src="${src}]);;
// if the script tag does not exist, add it to the document
if (!script) {
var script = document.createElement('script');
script.src = '${src}';
document.head.appendChild(script);
}
</script>
`;
}