Safely execute JavaScript and TypeScript scripts in a browser-sandboxed runtime with console output capturing.