Integrating dox from javascript