test sync js