Factor out form error-clearing code
Make style consistent with jQuery-created styles