Critical flaw patched in popular JavaScript sandbox used in AI projects