 (defn seq->js
   "Converts a seq-like value into a JS Array."
   ([obj flat visited]
-   (if-let [was-visited (visited? visited obj)]
+   (if-let [was-visited (@visited obj)]
      (if flat
        "Circular Seq"
        was-visited)

(defn ns->js
  "Converts a namespace obj into a JS Object."
  ([obj flat visited]
   (if-let [was-visited (visited? visited obj)]
     (if flat
       "Circular NS"
       was-visited)

    (.push arr v))
  arr)

(defn visit!
  "Marks potentially linked objects as visited to handle circular refs."
  ([visited obj out]
