TP2 is a project mainly written in COFFEESCRIPT and JAVASCRIPT, it's free.
An implementation of OT for text which supports TP2 (for p2p editing)
This is a little TP2-capable OT type for text written in coffeescript.
The algorithm is all defined here: http://code.google.com/p/lightwave/source/browse/trunk/experimental/ot/README
Run the tests using:
nodeunit test/text.coffee