There are lots of business uses to being able to automate documents. Being able to do so in JS rather than VBA would be a bonus for companies that have a need to do so, but don't want to train people in a language that's not used anywhere else.
It might also allow MS to do nifty online things.