pub type EventAttribFn = Rc<dyn AsRef<JsValue>>;
Box<dyn AsRef>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments.