Allow passing custom head template as option
Fix indentation