syncing js