JS: Validate date of birth