So you mean adding a property ```$whenJs``` for example?

It seems complicated since the validation closure can be dependant of other attributes and the scope of the JS validation function is limited to the attribute being validated.