Update sync.js

minor issue.