mocha tests working in browser