Spec.js is a testing framework built on top of Mozilla Rhino and Env.js. The idea is that you can run JavaScript tests without opening browsers, even for DOM manipulation.