Source : http://www.programmerinterview.com/index.php/javascript/javascript-outside-the-browser/
Javascript is commonly known by programmers as a language executed by browsers to validate forms, add extra functionality to webpages, etc.Because of the fact that Javascript is run by browsers, it is often mistakenly referred to as a client side language. But, it’s important to remember that Javascript is just a language, and depending on what purpose the language is implemented for, it can be used to do other things than just run on a browser. Here are some Examples.
Javascript on the Server Side
Javascript in PDF files
Javascript on the desktop
Javascript is also sometimes used to develop desktop widgets.
So, you can see that Javascript has many applications other than just being executed by browsers.