Add mocha and karma

For unit testing