All tests pass. Some performance issues but works
selftest runs in node.js
updated dependency to consjs