update compare-worker.js