createScriptSurfaceForTarget