 
 var lastElem = null;
 
-function RemoveHilite(el) {
+function SetActiveElem(el, isActive) {
     if(el) {
         var t = el.className;
-        t = t.replace('hilite', '').trim();
-        el.className = t;
-    }
-}
-
-function AddHilite(el) {
-    if(el) {
-        var t = el.className;
-        t = t.replace('hilite', '').trim();
-        t += ' hilite';
+        t = t.replace('active', '').trim();
+        if(isActive) {
+          t += ' active';
+        }
         el.className = t;
     }
 }

          [:link {:rel "stylesheet" :type "text/css" :href "styles.css"}]
          [:link {:rel "canonical" :href canonical}]]
        [:body
          [:div.content
            [:h1 "The King James Bible"]

            [:div#votd.votd]
            [:script "(function(w,d,t,u,v,i,n,l){w['VotdObject']=v;w[v]=w[v]||{};w[v].i=i;n=d.createElement(t),l=d.getElementsByTagName(t)[0];n.async=1;n.src=u;l.parentNode.insertBefore(n,l)})(window,document,'script','votd/votd.js','votd','votd');"]

            [:table.tocp
              [:tr [:td {:colspan 2} [:h2 "The Old Testament"]]]
              (->> m
                (take 39)
                (map toc-book))

              [:tr [:td {:colspan 2} [:h2 "The New Testament"]]]
              (->> m
                (drop 39)
                (map toc-book))]

            [:div.about [:a {:href "https://github.com/pstephens/kingjames.bible/blob/master/README.md"} "About " baseurl ]]]
          [:script {:type "text/javascript" :src "hiliter.js"}]]])))

  text-indent: 0;
  text-align: center;
}

.book h3 {
  margin: 0;
  min-height: 32px;
}
.book .chapters {
  display: none;
  margin-bottom: 8px;
}
.book .chapters a {
  display: inline-block;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 2px;
  margin: 2px;
  background-color: rgba(0,0,0,0.03);
}
.book.active .chapters {
  display: block;
}

.verses .active {
  background-color: #FFFF99;
}
.about {
