Don't translate HTML. You can do:
```js
var msg = "<p>" + gettext("There has been a failure...") + "</p><p>" + gettext("The raw error message is:") + "</p>";
```