Document Javascript integration (not tested yet)