JavaScript Weighted Promises Pool