Simple node.js validation helper class