trying to fix popover js