let document_from_node and window_from_node take &JS<>