fix popup js