You could probably simplify what you're doing here with `document.head.appendChild( tag )`