node.js assignment for CNN