Remove most of jscc code copied into doc.js; use compiled state machine; tweak docs