Fix the url bug of popup js