Connecting head object to the document object and testing/fixing it's tag functionality.