Addition of synchronous node.js/javascript implementation.