Reader underscoreReader = new InputStreamReader(JSConverter.class.getResourceAsStream("underscore.js"));
context.evaluateReader(globalScope, underscoreReader, "underscore.js", 1, null);
Reader srReader = new InputStreamReader(JSConverter.class.getResourceAsStream("SaikuRenderer.js"));
context.evaluateReader(globalScope, srReader, "SaikuRenderer.js", 1, null);
Reader strReader = new InputStreamReader(JSConverter.class.getResourceAsStream("SaikuTableRenderer.js"));
context.evaluateReader(globalScope, strReader, "SaikuTableRenderer.js", 1, null);
String data = om.writeValueAsString(qr);
Object wrappedQr = Context.javaToJS(data, globalScope);
ScriptableObject.putProperty(globalScope, "data", wrappedQr);
Object wrappedOut = Context.javaToJS(sw, globalScope);
ScriptableObject.putProperty(globalScope, "out", wrappedOut);