When making the ActiveX Dll in vb you need to register it (regsvr32).
Next in Initialize you can use the following code
code:
var sDll = new ActiveXObject('ProjectName.ClassName');
That will provide you access to all the functions in the class. Now to call them you simply use
code:
sDll.function(parameters);
.