public Visualizer(IVisualizerUser app, int width, int height,
boolean resizable) throws InstantiationException,
IllegalAccessException, IOException {
super(app.getJavaScriptPath());
this.app = app;
domWindow = new DOMWindow("Visualizer", this);
Object window = Context.javaToJS(domWindow, global);
ScriptableObject.putProperty(global, "window", window);
Object document = Context.javaToJS(domWindow.getDocument(), global);
ScriptableObject.putProperty(global, "document", document);
loadProgram(app.getProgram());