escaping all language strings used with javascript confirm(), alert() functions in smarty templates