let head = window.document.getElementsByTagName('head')[0] function includeCSS(aFile, aRel){ let style = window.document.createElement('link') style.href = aFile style.rel = aRel || 'stylesheet' head.appendChild(style) }