Comment Re:Getting JS out of the browser is a *great* idea (Score 1) 531
Javascript is already used for building desktop applications, the most popular probably being Firefox.
Many desktop applications already use scripting languages. For example see the following list of python gtk applications.
Nowadays you can easily write the parts of an application that requires high performance in C and the rest of the program, including the interface, in an interpreted language.
The problem Javascript has to face, though, is that it has very few libraries available for desktop or web applications. And the existing libraries are specifically written for one or the other task. CommonJS would be a common library for all environments and would allow porting code from one to another a lot more easily than it is today.