exporting doubledrag to java and webgl