added karma and jasmine testing