   (mwarn "Please remove the modal on" selector)
   (let [jq (aget js/window "$")
         $node (jq selector)
-        modal (aget $node "modal")]
-    (.call modal $node #js {:open true})))
+        $modal (aget $node "modal")]
+    (.call $modal $node #js {:open true})))
 
 ;; TODO: get rid of bootstrap popovers
 (defn popover

  (mwarn "Please remove the tooltip on" selector)
  (let [jq (aget js/window "$")
        $node (jq selector)
        popover (aget $node "tooltip")]
    (if options
      (.call popover $node (clj->js options))
      (.call popover $node))))

  (mwarn "Please remove the popover on" selector)
  (let [jq (aget js/window "$")
        $node (jq selector)
        $popover (aget $node "popover")]
    (.call $popover $node (clj->js options))))

;; TODO: get rid of bootstrap tooltips
(defn tooltip
