Besides using delay, as Alex says in his answer, install! works just fine because vars are just javascript variables under the hood.
Yous should not be installed directly! such as such, but for special cases like this, I personally allow myself (economically) to do this (i.e. the data is actually normal immutable Clojure after installation). One example when I do this is to override functions in debug builds:
(defn foo [] release code here)
Then to a file that is added only to debug builds:
(defn debug-foo [] (.log js/console "foo called")) (set! foo debug-foo)
source share