Create validator.js

Library source