node.js solver