Setting up unit test on JS with mocha and chai.