run js code with node.js to check cases