A JavaScript library for form validation