JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
    </head>
    <body>
    </body>
</html>

JavaScript

$('body').append(
    $('<p/>').text('This should work, but the alert fails in IE<9')
);
$('head').append(
    $('<script/>', {'type': 'text/javascript'}).text('alert("foo");')
);