Extract table headers from js