Attempt to port parts of Camel EIP to nodejs