Testing your Frontend JavaScript code using Mocha, Chai and Sinon