         [:p.muted.credit "By " (link-to "http://www.citerus.se/" "Citerus") " " [:i.icon-star-empty ]
                                 " Styling support by " (link-to "http://twitter.github.com/bootstrap/index.html" "Bootstrap. ") [:i.icon-star-empty ]
                                 " Icons by " (link-to "http://glyphicons.com/" "Glyphicons")]]]
-       (include-js "/js/jquery-1.8.3.min.js")
-       (include-js "/js/jquery-ui-1.9.2.custom.min.js")
-       (include-js "/js/bootstrap.min.js")
-       (include-js "/js/notes.js")])))
+       (include-js "js/jquery-1.8.3.min.js")
+       (include-js "js/jquery-ui-1.9.2.custom.min.js")
+       (include-js "js/bootstrap.min.js")
+       (include-js "js/notes.js")])))
 
 
 (defroutes app-routes

        [hiccup.form]
        [hiccup.page]
        [hiccup.element]
        [ring.util.response])
  (:require [compojure.handler :as handler]
            [compojure.route :as route]
            [monger.core :as mg]
            [monger.collection :as mc]
            [monger.query :as mq]
            [monger.joda-time])
  (:import [org.joda.time DateTime DateTimeZone]
           [org.bson.types ObjectId]))

(def db-uri "mongodb://drutten:gena@localhost:27017/notes")

(DateTimeZone/setDefault DateTimeZone/UTC)

(mg/connect-via-uri! db-uri)

(defn save-note! [note]
  (mc/insert "notes" note))


         [:div.span8 (for [{:keys [_id, heading, body, added? ts]} notes]
           [(if added? :div#added.note :div.note) [:div.row-fluid [:div.span11 [:legend heading]]
                                      [:div.span1 [:div.del (form-to [:delete "./"] (hidden-field :id _id) [:button.btn.btn-mini.btn-link {:type "submit"} [:i.icon-remove ]])]]]
                      [:div body]
                      [:p.text-info [:small ts]]])]]]

