Lint validate.js