At that time , investing on javascript would not have made Windows sell more.
Now Javascript is seen as a way for MS to get more apps on their RT plateform thus sell more Windows licenses.
However , i dont believe MS javascript move is a long term one.