$.each ( columns, function ( index, value ){
    var td = document.createElement('td');
    var text = document.createTextNode( data.attr( value ) );
    td.appendChild(text);
    tr.appendChild(td);
});
I have data.
I have value = "name"
I can't do data.name, I need to do the equivalent using the string. I tried  .attr( value ) but that didn't work.
 
     
    