Earlier quoted context omitted.
There's no way they ever would have exposed DirectX to JavaScript. It's not really admitting defeat to implement a web platform feature that customers want when you have no alternative. They used to be pushing Silverlight as a way to do 3D rendering (which made sense, because it had the DirectX bindings from XNA and .NET is a superior platform for rendering code when compared with JavaScript) but now that Silverlight…
Exposing DirectX to JavaScript would be like allowing the browser to run VBScrpt code. They tried.
What I think you mean is letting the browser run scripts in the Windows Scripting Host, which gives you unlimited access to the filesystem, etc.