This javascript function fixed the header of a table by adding the "fixed" class