Put the classes in the libjass namespace.

Stripped incorrect templates from JSDoc and replaced uses of Object with *.
Generate Dialogue.draw dynamically.

This trades having a single, gigantic draw() that passes through the runtime once, with hundreds of (usually) tiny and linear draw(), one for each individual dialogue. The jury is still out on the benefits and drawbacks, but this form is easier to optimize.