Add the possibility to use a function to generate the footer

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