Update runWhen.js