Adding when.js provider