   already exist."
   [opts requires]
   (let [index (js-dependency-index opts)]
-    (letfn [(cljs-deps [coll] (filter #(not (contains? index %)) coll))]
+    (letfn [(cljs-deps [coll] (remove #(contains? index %) coll))]
      (loop [requires (cljs-deps requires)
             deps {}]
        (if (seq requires)

               new-requires (remove #(or (contains? deps %)
                                         (contains? (set requires) %))
                                    (cljs-deps (-requires js)))]
           (recur (concat (rest requires) new-requires) (assoc deps next-ns js)))
         (dependency-order (vals deps)))))))

(comment

                parse-js-ns
                (assoc :file (.getPath f) :url (to-url f))))]
    (let [js-sources (filter #(.endsWith (.getName %) ".js") (file-seq (io/file path)))]
      (filter #(seq (:provides %)) (map graph-node js-sources)))))

(def load-library (memoize load-library*))

