The scope.send only seems works in the tab, I presume it is not in scope in the <head>.
you could send a http get request from the head and pick up the time/date in a http endpoint.
e.g.
[{"id":"69c699a5.47f94","type":"http in","z":"b779de97.b1b46","name":"","url":"time_date","method":"get","upload":false,"swaggerDoc":"","x":200,"y":3680,"wires":[["a76897c9.a113f8","20ee4ea1.48b01a"]]},{"id":"a76897c9.a113f8","type":"debug","z":"b779de97.b1b46","name":"","active":true,"console":"false","complete":"false","x":899,"y":3740,"wires":[]},{"id":"20ee4ea1.48b01a","type":"http response","z":"b779de97.b1b46","name":"","statusCode":"","headers":{},"x":430,"y":3640,"wires":[]},{"id":"111e0e2b.e9acd2","type":"ui_template","z":"b779de97.b1b46","group":"b9d366f18ff7ae74","name":"","order":14,"width":0,"height":0,"format":"<script>\nconst Http = new XMLHttpRequest();\nconst url='http://192.168.1.25:1880/time_date?time=' + new Date().valueOf();\nHttp.open(\"GET\", url);\nHttp.send();\n</script>","storeOutMessages":false,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"global","className":"","x":630,"y":3720,"wires":[["a76897c9.a113f8"]]},{"id":"fb693ad8.0a795","type":"inject","z":"b779de97.b1b46","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":3760,"wires":[["111e0e2b.e9acd2"]]},{"id":"b9d366f18ff7ae74","type":"ui_group","name":"test","tab":"ffba43d73860d25d","order":1,"disp":true,"width":12,"collapse":false},{"id":"ffba43d73860d25d","type":"ui_tab","name":"Level","icon":"dashboard","order":3,"disabled":false,"hidden":false}]