added jasmine/karma implementation