got the header insertion working properly

The original `html_head` function made <title> an attribute of the header tag, but it should be a tag in it's own right, just within the <head></head> tags. This fixes it so the title is done properly.