mongojs clone based on when.js