Frontend TDD with mocha