diff --git a/resources/static/dialog/js/misc/screen_size_hacks.js b/resources/static/dialog/js/misc/screen_size_hacks.js
index 8cc8871bbf27b819841052c9aeb5f3220c7b5a11..ce048dd5f2812bc802b4b095b2feffb957dba181 100644
--- a/resources/static/dialog/js/misc/screen_size_hacks.js
+++ b/resources/static/dialog/js/misc/screen_size_hacks.js
@@ -1,4 +1,6 @@
 (function() {
+  "use strict";
+
   /**
    * This is a hack to feign fixed headers/footers and dynamic body content
    * size.  On mobile, it helps keep the footer at the very bottom of the
@@ -113,7 +115,7 @@
         // the position specified in CSS.
         $("section,#signIn").css("position", "");
 
-        favIconHeight = $("#favicon").outerHeight();
+        var favIconHeight = $("#favicon").outerHeight();
 
         // Force the top of the main content area to be below the favicon area.
         signInEl.css("top", favIconHeight + "px");