added browser side test with mocha and chai