Javascript,  add class to html table to have clickable headers that sort column's