Formvalid: fixed top error anchor links to field in error

1. Fixes error anchor links when the error message is added to the `<legend>` element.
1. Adds click event handler to error anchor links for all browsers (was previously only applying to IE8+).