sync js file