Update sync.js

Fixed typo