Cleaned up d3-tip lib, plus fixed bug where direction of arrow was wrong if switched
Tooltip direction switches based on bubble location