Popover: minor improvement

Avoid an `empty().append(...)` on subsequent shows. Handle `title` in the same way as `content`.
Maybe make this a class method instead of a private function in case people want to override it?