Change unit testing to use node.js instead of Rhino.

See http://about.travis-ci.org/docs/user/languages/javascript-with-nodejs/