Description of the problem
The "Adding Control Pages" section includes some details on how to add javascript
These details include references to output and compile methods.
The output method is missing from the documentation of the javascript class that it is presumably part of.