I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off.