Update and rename sync.js to js/sync.js