Basic design by contract for node.js