Clean up JavaScriptRunner to initialize in constructor