The source code for the project can be found in the src/ directory. It's written in CoffeeScript.
After installing CoffeeScript, generate the JavaScript version:
coffee -o js/ src/image/textmode.coffee
There is also a minified version of the code in the js/ directory.