Speak of "testing JavaScript" and most developers will conjure up images of editing an HTML file and then hitting reload on their web browser. That's probably not going to change, at least not as long as web browser support for JavaScript is so unpredictable. But if you have files of JavaScript you find yourself using more than once, you need unit tests.