extracted Clojure(Script) host environment-specific code into compact set of functions