Heyo, you are closing the backticks and then trying to put a variable in
const $head = ` // << You open the backticks (string literal) here
<head>
<script> ... `${e}-${o}` ... </script> // <<< here you're closing it, then putting ${e}-${o} and then re-opening it. ${e} isn't valid in JS except in a string literal (which you closed)
</head>
`;
Instead you can just do:
const head = ` // << You open the backticks (string literal) here
<head>
<script> ... ${e}-${o} ... </script>
</head>
`;
Here, it is not being closed and re-opened. It’s just one big string literal
If you use an editor like VS Code you should see feedback on this saying it’s invalid and why