We need a custom implementation of fmt::Debug since JsValue doesn’t implement debug.
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.