StringBuilder does not have any advantage in compiled js, afaik only IE6/7 improves. 
Since this is a very simple code only used for debug I preferred more legible code instead of dealing with SBuilders.