Add ansi.js and tests to handle escape codes