HeadMacro: Run onHeadEnd event before </head>