added badges helper that returns the svg element