JavaScript Weighted Promises Pool

#1