         (dom/div nil
                  (dom/h2 nil "search")
                  (dom/input #js {:ref "search-term"
+                                 :id "search-term"
                                  :type "text"
                                  :value (:search-term state)
                                  :onChange #(handle-change % owner state)

     (or (get urls "ogg") (get urls "mp3"))
     "href")))


(defn player-view [app owner]
  (reify
    om/IInitState
    (init-state [_]

                 (om/build results-view app {:init-state state})
                 (dom/h2 nil "queue")
                 (om/build queue-view app {:init-state state})
                 (om/build player-view app {:init-state state})
                 )))))

(defn init []
  (let [el (. js/document (getElementById "om-app"))]
    (om/root app-view app-state
             {:target el})))


(.addEventListener js/window "load" init)
