Ports validator.js to Ringo.