Fix 'when.js' dependency