add mocha test suites for node and browser