enable karma-mode with JavaScript modes