Allow doctype and html tag to be customised