Since the area above the doctype declaration is not available when editing the template you will need to put this dynamic array into the template derived page after the fact. You can try adding it into the head of the template file in a non editable region to see if that fits your needs.