add the code from karma/issues/622 to fix coffeescript coverage