update the new popup js file