add compare_sync.js