diff --git a/misc/drupal.js b/misc/drupal.js
index d92302152c759d0c7e3485af56e201e54dbc38e9..08e720ca0bd4f75ae8e15309a435c257b00fcc43 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) {
 // Global Killswitch on the <html> element
 if (Drupal.jsEnabled) {
   // Global Killswitch on the <html> element
-  document.documentElement.className = 'js';
+  $(document.documentElement).addClass('js');
   // 'js enabled' cookie
   document.cookie = 'has_js=1; path=/';
   // Attach all behaviors.