node.js version of executor_worker