
// These should apply both to the initial post, and any subsequent
// discovered posts

function ajaxify_comments_link() {

}

function ajaxify_parent_link() {

}

function ajaxify_child_link() {

}

function ajaxify_vote_buttons() {

}


function show_children_count() {

}


// For when the reply link is clicked
function ajaxify_reply_form() {

}


function document_onload() {
    alert(5);
}


document.body.onload = document_onload;

@@ -349,37 +349,594 @@
 %0A%7D%0A%0A
-%0Afunction document_onload() %7B
+function add_stuff_to_grouproots() %7B%0A    var lis = document.getElementsByTagName('li');%0A    for (var i = 0, len = lis.length; i %3C len; ++i) %7B%0A        lis%5Bi%5D.innerHTML += ' %3Ca href=%22https://127.0.0.1:8443/posts?parent=' + lis%5Bi%5D.textContent + '%22%3Ecomments%3C/a%3E';%0A    %7D%0A%7D%0A%0Afunction document_onload() %7B%0A    var x = false;%0A    $('li').each(function () %7B%0A        var that = this;%0A        $(this).find('a').each(function () %7B%0A            $.getJSON('/post/' + this.textContent, function (data) %7B%0A                if (!x) alert(data);%0A                x = false;%0A            %7D);%0A        %7D);%0A    %7D)%0A
 %0A   

add some initial js