use promises already provided by mongoose instead of a custom wait.js() module