ccgvis.js: wrap everything in a function, modeled after annodoc.js