added support for either coffee or js files for karma unit testing