Made mocha tests for the browser*
Got the tests to pass on canary