chess write on node.js and derby.js