Added karma and jasmine for unit testing.