I see how this g_ prefix is used... but at first look I don't like... but maybe it make sense.

Maybe we can make an exception and use Capital name for JS global objects. I think this is something used by the code from stdlib.

var Shell = new ActiveXObject("WScript.Shell");
var Filesystem = new ActiveXObject("Scripting.FileSystemObject");

What do you say?