Update when.js