Fix hardcoded border radius
Comment magic numbers
Use var for triangle widths
Clean up coordinates
Remove problematic tooltip load feature
Prevent layouts by using getBoundingClientRect() for everything