added mocha browser tests (think about moving it to node)