document.getElementsByTagName("head")[0].insertAdjacentHTML( "beforeend", "<link rel="stylesheet" href="path/to/style.css" />");