js: fix annoying bug with cache interfering with decision update.