$.fn.circulateText = function(radius,space=10) {
 
    return this.each(function() {
	
		var text= $(this).text().trim();
		$(this).empty();
		
		$(this).append('<div class="innerWrapper" style="position:relative"></div>');
		var innerWrapper = $(this).find('.innerWrapper');
		
		var stepAngle = space;
		var startAngle;
		
		startAngle = -( space * text.length/2)+(space/2);
		
		for(i=0; i<text.length; i++)
		{
		    $(innerWrapper).append('<span class="singleChar" style="height:'+radius+'px; position:absolute; left:'+$(innerWrapper).width()/2+'px;">'+text[i]+'</span>');
		    $(innerWrapper).find('.singleChar').last().rotate({
				angle:startAngle,
				center: ["50%", "100%"]
			});
			startAngle = startAngle + stepAngle;
		}
		
    });
 
};

@@ -115,16 +115,51 @@
 trim();%0A
+%09    %09var textLengh = text.length;%0A
 %09%09$(this
@@ -352,31 +352,12 @@
 ngle
-;%0A%09%09%0A%09%09startAngle 
 = -(
- 
 spac
@@ -364,22 +364,20 @@
 e * text
-.l
+L
 eng
-t
 h/2)+(sp
@@ -404,22 +404,20 @@
 ; i%3Ctext
-.l
+L
 eng
-t
 h; i++)%0A

Refactor the code