Add the possibility to use a function to generate the header

This provides greater flexibility to generate the header.

I personally use it after jshint to automatically fix various problems in my code, using the `.jshint.results` properties of the file object.