creating sync.js