Javascript class to provide robust and easy to use form validation.