         "endDate" end-date))))
 
 (defn init-timepicker []
-  )
+  (html ($ "timepickerContainer") (build-timepicker)))
 
 (defn init-snapshot-list []
   (swap! snapshot-list (fn []

(defn set-minutes! [new-mins]
  (swap! selected-time doto (.setMinutes new-mins)))

(defn sync-time-with-snapshot! []
  (swap! selected-time #(js/Date. (:time @snapshot-index))))

;;------------------------------------------------------------------------------
;; Watchers
;;------------------------------------------------------------------------------

(defn on-snapshot-index-change [_ _ _ new-index]
  (let [snapshot (@snapshot-list new-index)
        time (Date. (:time snapshot))
        image (:image snapshot)
        time-display (str (.toDateString time) " " (.toLocaleTimeString time))]

  (:require-macros [hiccups.core :as hiccups])
  (:require
    [hiccups.runtime :as hiccupsrt])
  (:use [jayq.core :only [$ document-ready html on attr prop text]]))

;;------------------------------------------------------------------------------
;; Atoms
;;------------------------------------------------------------------------------

(def snapshots (atom nil))
(def selected-time (atom nil))
(def url-update-timout (atom nil)) ; This probably doesn't need to be atom, maybe be clojure feature that handles this

