DCD ported to JavaScript, as a Node.JS console app