JfUnit is a project mainly written in JavaScript, it's free.
Unit test for Javascript
Open Source application under MIT license
See example files to see how it works in many different levels. You'll simply have to load the library to start writing your unit tests. You can run your tests whenever you want, even from your console.