Print table column headers dynamically using object keys rather than static text