Control a max cube with node.js