Object xmlHttpRequest = new NativeJavaClass(global,
XMLHttpRequest.class);
global.put("XMLHttpRequest", global, xmlHttpRequest);
new Console(global, "console");
new Navigator(global, "navigator");
jsonParser = new JsonParser(cx, global);
String[] names = { "alert", "prompt", "confirm" };
global.defineFunctionProperties(names, WebWrapper.class,
ScriptableObject.DONTENUM);
}