fix the popover js