diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -40,7 +40,7 @@ function createKibe(d, cookie) {
       css.href = url;
       css.rel = 'stylesheet';
       css.type = 'text/css';
-      document.head.appendChild(css, fjs);
+      document.getElementsByTagName('head')[0].appendChild(css, fjs);
     };
   }
appending script to document.getElementsByTagName('head')[0] instead of document.head to support older browsers.