(defn events [object type] (let [out (chan)] (.addEventListener object type (fn [e] (put! out e))) out))