Popover JavaScript to add Close X icon using data attribute

Use data-close="true" attribute to enable the close (x) icon on the
popover.