         (.on js/Pace "done" (fn []
                               (fade-out ($ ".overlay"))))
 
-        (aset js/window "ActiveTab" TIMETABLE-TAB-INDEX)
+        (set! ACTIVE-TAB TIMETABLE-TAB-INDEX)
         (aset js/window "ModulesMap" (build-timetable-module-map MODULES))
 
         ; initialize `WEEK-TEXT-ARRAY`

       :private true}
  TIMETABLE-TAB-INDEX 1)

(def ^{:doc     "Whether we started downloading JavaScript files for
                 Module Finder page"
       :private true}

                  (show ($ :#module-finder))
                  (.removeClass (parent ($ :#timetable-builder-tab-link)) "active")
                  (.addClass (parent ($ :#module-finder-tab-link)) "active")
                  (set! ACTIVE-TAB MODULEFINDER-TAB-INDEX)
                  (select2/shift-select2-container-to "timetable-builder-controls"
                                                      "module-finder-sidebar")))

