Powerful objects and strings validation in javascript for Node and the browser