refactored gulp and karma