Replace deprecated createJavaScriptNode by createScriptProcessor