Added feature to take `th` as well as data source

Fixed responsive table script to look for `th` elements before `td` in
`thead`.