Javascript is not Java. It is a misnamed scripting language that has characteristics similar to the Java syntax, but it is definitely not Java. It is executed by a client browser (for the most part) and not precompiled (for the most part). You can create objects and develop executable javascripts using the .NET tools from microsoft. They have a JSC (Javascript Compiler) to use and some neat stuff in the JavaScript SDK. But the similarities are all that exist. Javascript is much more of a script syntax than a Language syntax.

Please, no negative comments here. This is just my view. Please post your explanation if it is clearer than this.