.klass = null instead of .allowJavaScriptCalls = true