cleanup in MongoDB execution and JS generation
capture the actual output path in generated JS
encapsulate temp name generation effect in the execute Task