First simple javascript version with a browser mocha test runner