 (defn now [] (.now js/Date))
 
 (defn default-state []
-  {:stime (now)
-   :etime (+ (:twenty-five presets) (now))
-   :orig-time (now)
-   :on false})
+  (let [now (now)]
+    {:stime now
+     :etime (+ (:twenty-five presets) now)
+     :orig-time now
+     :on false}))
 
 (def sound (.createElement js/document "audio"))
 (set! (.-src sound) "/sounds/bell.mp3")

        #js {:className (if (.valueOf on) "preset disabled" "preset")}
        (dom/a #js {:onClick (fn [e]
                               (.preventDefault e)
                               (when (not (.valueOf on))
                                 (let [t (om/get-state owner :time)]
                                   (om/transact! cursor
                                                 #(assoc (into % (default-state))
                                                         :etime (+ (* one-min t) (now)))))))}
               (om/get-state owner :time))))))

(defn presets-view [{:keys [stime etime on] :as cursor} _]


    om/IWillUpdate
    (will-update [_ {:keys [stime etime orig-time]} _]
      (om/set-state! owner :width (-> (/ (- etime stime) (- etime orig-time))
                                      (* 100)
                                      (str "%"))))

    om/IRenderState
    (render-state [_ {:keys [width]}]
