diff --git a/monitoring.js b/monitoring.js
index 7f1fe3b..0157e54 100644
--- a/monitoring.js
+++ b/monitoring.js
@@ -3,13 +3,14 @@
  * Javascript behaviors for the monitoring module.
  */
 
-(function($) {
+(function ($) {
+  'use strict';
 
   /**
    * Behavior that adds and controls the toggle link on the overview page.
    */
   Drupal.behaviors.monitoringOverviewToggle = {
-    attach: function(context) {
+    attach: function (context) {
       // Check if there are any criticals, warnings or unknowns.
       if (drupalSettings.monitoring_escalated_sensors > 0) {
         // Inject toggle link into DOM.
@@ -17,7 +18,7 @@
             .appendTo('.monitoring-overview-summary', context)
             .click(
               function () {
-                if ($(this).text() == Drupal.t('Show OK sensors')) {
+                if ($(this).text() === Drupal.t('Show OK sensors')) {
                   $(this).text(Drupal.t('Hide OK sensors'));
                   $('#monitoring-sensors-overview tr.monitoring-ok, #monitoring-sensors-overview tr.sensor-category-ok', context).fadeIn();
                 }
@@ -31,7 +32,7 @@
         $('#monitoring-sensors-overview tr.monitoring-ok, #monitoring-sensors-overview tr.sensor-category-ok', context).hide();
       }
     }
-  }
+  };
 
 })(jQuery);
 
