Replace calls to ugly $("#cell_i_j") with cell(i, j) function