Create validate.js

Initial commit