If you're running Reflection using the Java Plug-in, you can access API methods via JavaScript (and VBScript in Internet Explorer) as you normally do, but you must also do the following:
Add the parameter preloadJSAPI to the Reflection session and set the value to "true".
For more information about using the Java Plug-in with Reflection, see.