As you never actually use the raw html other than to construct the jQuery object this would probably be clearer to just wrap the strings above in `$` calls. Something like:

```javascript
$warning = $("<div .... >");
```

These variables should also be `$` prefixed to show they contain jQuery objects.