Only add the alert close button when JS is enabled.

Fixes #46

[skip ci]