karma fix + gruntfile refactoring