Fixed double escaping of newlines in JS alerts. This became incorrect when we updated the smarty-gettext plugin.