   )
 )
 
-(defn error-handler [{:keys [status status-text]}]
-  (.log js/console (str "something bad happened: " status " " status-text)))
 
 (defn handler [response]
   (

          )
        )         
      )
      ;(apply dom/ul #js {:className "animals"} 
        ;(map story-view (:stories app) )
      ;)

    )
  )
)





(om/root
 stories-view
 app-state
 {:target (js/document.getElementById "app")})

      (dom/div #js  {:className "panel-primary"}
        (dom/div #js {:className "panel-heading"}
          (dom/h3 #js {:className "panel-title"}
            (dom/a #js {:href "#" :onClick (fn [e] (downloadstory (get story :Reference)))}
               (dom/div #js {:dangerouslySetInnerHTML #js {:__html (get story :Title)}} nil)
            )
          nil )
        )
        (dom/div #js {:className "panel-body"}
