Update refs to when.js