    $(document).ready(function($) {
        var comment_form = $("#comment-form-container form");
        if (comment_form.length > 0) {
            $(".comment").each(function() {
                var jthis = $(this);
                $('> .comment-body', jthis).after(
                        $("<a class='reply-link' href='#'>reply</a>").click(function() {
                            if (!$("> form", jthis).length) {
                                comment_form = comment_form.clone();
                                var comment_id = $(".anchor", jthis).attr("name").replace("c-", "");
                                $('input[name="parent"]', comment_form).val(comment_id);
                                $(this).parent().append(comment_form);
                            }
                            return false;
                        })
                );
            });
        }
    });

