In the ARDroneSDK3, we provide :
– the basic C interface which implements all commands
– helpers which are used in freeflight3 : an objective C interface and a java interface
You may try these possible solutions
– call objectiveC or Java inside the Java script if you have all the plugins you need
– call directly the C interface in the Java script.