interesting.. I wonder if it would be better to inject the script node into the head instead of using document.write? This would then result in async/deferred js loading which may help page load performance.
http://codereview.appspot.com/1687043/show
