using karma for the js test instead of teaspoon