Added test scripts to run tests on node.js and phantomjs in all environments.