function cmjn(node){
    var $node = $(node).clone(),
        text = $node.text();
    
    $node.empty();
    $node.addClass('cmjn');
    var res = '<span class="c">'+ text + '</span>';
    res += '<span class="m">'+ text + '</span>';
    res += '<span class="j">'+ text + '</span>';
    res += '<span class="n">'+ text + '</span>';
    $node.append(res);
    return $node;
}

function print_cmjn(node){
    $(node).find('.cmjn').each(function(){
       $(this).replaceWith(cmjn($(this))); 
    });
}

$(document).ready(function() {
    print_cmjn($('#content'));
});

