Converted table headers to JS