This also makes sense because the validation js code may depend on some external js libs (like the case here). So it's the responsibility of the validator to register the dependent js libs.