Inserting commas or spaces into a long output of jQuery's .text() return
<p>I'm attempting to make a bookmarklet that will spit out the text of all links with a class of author. So far, I have this:</p>

<pre><code>/// Stuff to load jQuery into the bookmarklet
    var authors = $(".author");var names = authors.text();alert(names);
</code></pre>

<p>The only issue is that it returns a long list of blabber,</p>

<pre><code>JohnDoeMaryDoeEddieDoe
</code></pre>

<p>I need to append a comma or space to the end of each authors name, But I'm unsure how to do it.</p>

<pre><code>$(".author"); + ",";
</code></pre>

<p>Simply appends a comma to the end of the entire string, And not individual authors/names, as does:</p>

<pre><code>authors.text() + ","
</code></pre>

<p>Anyway I can do this?</p>
