Defining JSON schemas in Node.js