Not sure if it was intended, but the form fields that are flagged as errors are also getting the effects applied to them - such as pulsating. It doesn't work that great and looks horrible on a form with a few fields.

I think the jquery code needs to be more specific when refering to the element to manipulate:
Use $js .= "\$('div.error') instead of $js .= "\$('.error')