It is the same JavaScript methods etc. I assume you are familiar with the 3D JavaScript API.
The difference is how it is used. Instead of being embedded in a PDF (or typed in the console), it is sent from an external VB app, using a method called getJSObject. This is described in the Interapplication Communcation section.