Rate limiting in Node.js with Promises