Capture webPage locally in Task to avoid @State binding issues when calling evaluateJavaScript in async context.