I had same problem trying to access VLC object (both from NSAPI / ActiveX) from JS. On my case it depends from VLC release. Currently, if I use 2.0.2 all is ok (both NSAPI and AciveX). Newer releases seems to break JS wrapping of VLC object.
U can try with 2.0.2 release and check if u solve your problem.