 ;; Views
 
 (defn track-span [track]
-  (str (track "artist") " - " (track "title")))
+  [:span (str (track "artist") " - " (track "title"))])
 
 (defn playlist-section []
   (let [playlist (r/atom [])

  [:input {:type "button" :value "Enqueue"
           :on-click #(enqueue-track track)}])

(defn tracks-section []
  (let [tracks (r/atom [])
        query (r/atom "")

    (fn []
      (js/setTimeout get-tracks 1000)
      [:div [:h2 "Tracks"]
       [query-input query]
       [tracks-list tracks]
       [upload-form]])))

(defn home-page []
  [:div [:h1 "Airhead"]
   [playlist-section]
   [tracks-section]])

;; -------------------------
;; Initialize app
