sync js load