Try this:
Much more simpler version.
$('[name="cb"]').change(function () { // Add change event for your check boxes
$('.totalColumn td:lt(3)').html("0"); // reset the sum tds to value 0
$('[name="cb"]:checked').closest('tr').find('td:lt(3)').each(function () { //Loop through all the tds(but last one) for the rows of checked checkboxes
var $td = $(this);
var $sumColumn = $('#sum_table tr.totalColumn td:eq(' + $td.index() + ')'); //get the correspoding column in the total checkbox relative to the current td iterated
var currVal = $sumColumn.html() || 0; // Get the value from the column, incase it has no value default it to 0
currVal = +currVal + +$td.html(); // add the value
$sumColumn.html(currVal); // populate the column in the total checkbox relative to the current td iterated
});
});