updated popover js