Changed the way that the popover is appended to the dom -- this allows for popups on elements with variant layouts.