Replaced deprecated HTML attribute with a working one
Reworked thead/thead generation to solely use integer values as position indicators, renamed the settings for these to thead and tfoot, fixed attribute assigning to not override already existing attribute values, some markup changes to conform to jQuery style guides