I am trying to insert (append) into an element ... \"body\" specifically.
I am able to do this this way at the moment:
$var = \"some JS stuff\";
$e = $ht
';
That is, the undocumented makeup()
function will build the tag and any associated text/code.