added extend validator.js object