javascript validator for node.js server and browser, based on flatiron revalidator