Is there something comparable in JavaScript?
Not in JavaScript, but in Microsoft's JScript in limited environments, yes:
var icaObj = new ActiveXObject("Citrix.ICAClient");
And just like VBScript, this will only work in a very limited situation: Specificially, something running with Internet Explorer with full permissions (or, of course, in JScript running on the server).