
Just because you can do anything in JavaScript doesn't mean you should.
One of the things you can do in JavaScript is make it behave a little like a well-thought-through and usable language, but the effort is non-trivial. This is one reason I find Node so baffling- why are we taking the one of the most irritating languages around and putting it on the server rather than dedicating some effort to picking one of the many excellent languages that exist already and making it run in the browser?