watch.js: fix a bug in previous commit