Update tooltip.js

Improved accuracy, improved performance. Added new feature, you can now add a custom class to the tool tip container based on the target element.