 	[]
 	(jayq/ajax "http://deathrow.herokuapp.com/offenders/random"
 	            {:dataType "json"
-	             :success  (fn [data] (render-quote (js->clj data :keywordize-keys true)))
+	             :success  (fn [data status xhr]
+	             				(render-quote (js->clj data :keywordize-keys true)))
 	             :error render-error-quote
 	             :timeout 5000}))
 

	[]
	(-> ($ ".load-statement, .page-header a")
		(.on "click"
			#(do (log %)
				(.preventDefault %)
				(h/dispatch! (.-pathname (.-target %)))
				;(log (.getToken hist))

	)

(h/navigate-callback
	#(do ;(log "NAVIGATE event")
		;(log (str "TOKEN: " (.-token %)))
		;(.preventDefault %)
		;(.setToken hist (.-token %))
		(secretary/dispatch! (.-token %))))
