Created by: kriscarle
This checks if the the element is part of an SVG and adds the tooltip/popup div to the body instead of inside the SVG. It also calculates the position for the SVG element.
This is the result of the thread at http://stackoverflow.com/questions/13943582/why-doesnt-twitter-bootstrap-popover-work-with-svg-elements?lq=1