(function(){ var target = 'sherpa-widget', css, html; /* Create HTML element and assiging attributes to append to the head of the document */ css = document.createElement('link'); css.setAttribute('rel', 'stylesheet'); css.setAttribute('href', 'http://webstandardssherpa.com/w/widget.css'); document.head.appendChild(css); html = '
' + ''; document.getElementById(target).innerHTML = html; }());