diff --git a/misc/tableheader.js b/misc/tableheader.js
index 949ef52..427c670 100644
--- a/misc/tableheader.js
+++ b/misc/tableheader.js
@@ -30,9 +30,16 @@ Drupal.tableHeader = function (table) {
 
   // Clone the table header so it inherits original jQuery properties. Hide
   // the table to avoid a flash of the header clone upon page load.
-  this.stickyTable = $('<table class="sticky-header"/>')
+  this.stickyTable = $(document.createElement('table'))
     .insertBefore(this.originalTable)
     .css({ position: 'fixed', top: '0px' });
+
+  // Copy classes from originalTable, remove undesired classes, and add sticky-header.
+  // Any other classes added to originalTable by modules will exists in stickyTable to ensure consistent styling.
+  this.stickyTable.attr('class', this.originalTable.attr('class'));
+  this.stickyTable.removeClass('sticky-enabled tableheader-processed sticky-table foo');
+  this.stickyTable.addClass('sticky-header');
+
   this.stickyHeader = this.originalHeader.clone(true)
     .hide()
     .appendTo(this.stickyTable);
