1diff --git a/xtmpl_js.ml b/xtmpl_js.ml
2index e0d3894..991d1b3 100644
3--- a/xtmpl_js.ml
4+++ b/xtmpl_js.ml
5@@ -25,6 +25,8 @@
6
7 (** *)
8
9+open Js_of_ocaml
10+
11 let log s = Firebug.console##log (Js.string s);;
12
13 module X = Xtmpl_rewrite
14diff --git a/xtmpl_js.mli b/xtmpl_js.mli
15index d709896..5ed471c 100644
16--- a/xtmpl_js.mli
17+++ b/xtmpl_js.mli
18@@ -25,6 +25,8 @@
19
20 (** Convenient functions to use in JS code *)
21
22+open Js_of_ocaml
23+
24 (** Create a new tree of DOM nodes from a given XML tree.
25 Errors are logged to the firebug console.
26 @param doc Default is [Dom_html.document].