   "Click event handler for the `Timetable Builder` tab"
   []
   ; Clear the interval when user switches to `Timetable Builder` page
-  (if (and (not (aget js/window "Exhibit3_Initialized"))
+  (if (and (not EXHIBIT3-INITIALIZED?)
            (not (nil? INITIALIZE-EXHIBIT3-INTERVAL-VAL)))
       (do
         (js/clearInterval INITIALIZE-EXHIBIT3-INTERVAL-VAL)

            [cljs-nusmods.select2               :as select2]
            [cljs-nusmods.time                  :as time-helper]
            [cljs-nusmods.timetable             :as timetable]))

(defn- getScript
  "Wrapper for $.getScript"

  (.log js/console "In `check-and-initialize-exhibit3`")
  (.log js/console (str "INITIALIZE-EXHIBIT3-INTERVAL-VAL = "
                        INITIALIZE-EXHIBIT3-INTERVAL-VAL))
  (if EXHIBIT3-INITIALIZED?
      (do
        (.log js/console "Exhibit3 initialized, clearing interval")
        (js/clearInterval INITIALIZE-EXHIBIT3-INTERVAL-VAL)
