-document.write('<link rel="stylesheet" href="{{htmlhelper.fullUrl('css/embed.css')}}"/>');
-document.write(
- '<div class="phork" id="{{repo.id}}">'
+var me = document.getElementById('phork-script-{{repo.id}}');
+me.insertAdjacentHTML(
+ 'afterend',
+ '<link rel="stylesheet" href="{{htmlhelper.fullUrl('css/embed.css')}}"/>'
+ + '<div class="phork" id="{{repo.id}}">'