Hint: use the Code button in the message editor to wrap special tags around code or XML so that they will format in a more readable way.
Also, be very careful about coding "$" jQuery clauses on a JSF View Definition. The "$" may be intercepted and mis-interpreted by the EL processor, which assigns a different meaning. It's safer to use the alternate "jQuery()" syntax.
subject: how to refresh captcha text with JS or render?