I used the following jquery to insert a metatag into a html document.
Javascript solution:
document.getElementsByTagName('head')[0].innerHTML += '';