Added support for karma & jasmine unit testing