demo howing how to use karma and mocha to do client side js unit testing