Fixed #2. Script will add class "error" to elements with ".error_[name_of_field]" elements in form.