Added karma testing with jasmine.