update popup and resanchor js file document