fix regression and refactor todos/update.js a bit