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

(defn map->js
  "Converts a map-like value into a JS Object."
  ([obj flat visited]
   (if-let [was-visited (visited? visited obj)]
     (if flat
       "Circular Map"
       was-visited)

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