It's the ubiquity of the interpreter (every browser), right? You'd be hard-pressed to write anything for the web without JS, and once you're writing in that language, there's a strong pull to use similar libraries/processes/etc. for non-in-browser work.