Merge pull request #2 from toolsley/master

JavaScript port for node.js and browser
Merge pull request #3 from toolsley/master

Switch test lib from QUnit to wru in JavaScript port