Just make sure that the first line in your source file has a header section in it, for example:
// # My Custom Title
var code = require('somelib');
The above code, when given as an input to docco, will result in an HTML page with title "My Custom Title".