add directives to karma files