 (ns golden-kestrel.core
   (:require
+    [clojure.string :as string]
+    [clojure.set :as set]
     [om.core :as om :include-macros true]
     [om.dom :as dom :include-macros true]))
 

  []
  (when-let [rootdom (. js/document (getElementById "golden-kestrel"))]
    (let [form-element (find-or-create-element rootdom "embed-form")
          embed-element (find-or-create-element rootdom "embed-example")]
      (om/root
        app-state
        (fn [app owner]

      (om/root
        app-state
        (fn [app owner]
          (js/setTimeout run-altmetric-embeds 100)
          (om/component (embed app)))
        embed-element)
      (om/root
        app-state
        (fn [app owner]
          (om/component (embed-code app)))
        code-element))))

(init)
