SERVER-12580 Improve mrShardedOutput.js