Use .text instead of setInnerHtml
Moving the event registery into the header object itself.