js interface to https://github.com/apenwarr/redo